LookML to Omni converter API app

Justin He · Friday Demos · July 3, 2025 · 4:57

Another vibe coded app on top of the Omni API - this one for converting LookML to Omni's data model.

Try it yourselfThe full week on docsappminimodeling

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Greetings. How are you, people? With you, Justin. I'm recording a demo for you again . Earlier this week, we were tasked with recreating some Looker dashboards for a potential client we want to migrate from Looker to Omni. In the process, we realized that it wasn't as simple as just recreating the data model using the same views and combining them in an Omni style.

  2. This customer had a very old Looker installation, probably from 2018 or earlier. Therefore, the join keys and many custom dimensions contained a bunch of references. So, it wasn't enough to just connect through the circuit layer and put everything back together. Therefore, we "on our own initiative" created a LookML generator in YAML for Omni, which can be simply inserted into Omni.

  3. To demonstrate this, I found the publicly available LookML of our good friend Leo. So if I take all these measurements and metrics, I can just plug it right into my app. And we will convert from Looker to Omni YAML. He does some things very well. For example, if I find filters, you will see the filtered metrics. This is implemented beautifully and elegantly.

  4. We have built-in support for reading dimensions, descriptions, as well as aggregates and, of course, group labels. All this works "out of the box" . Of course, there are some oddities: for example, if you take this metric, sometimes clients in Looker, instead of calling the primary key, may call something like "table.no_doc_primary_key" , skipping the dimension reference and accessing the raw field directly.

  5. So in that case, if we generate that, Omni will also try to point to that raw key. But the difficulty is that Omni has a schema layer. Since the raw field exists, the schema level will pick up on this raw dimension. So we should probably update this to the format "${ primary_key}" so that it actually refers to the dimension itself.

  6. Um, joins can also be a bit weird; we process, say, if I want to find a LookML model here, like "explorer," you can paste it right here and it will turn it into connections on the Omni side for us right now. Hmm, there's no built-in support for creating theme files yet. But one strange thing you'll notice in Looker is the lack of an explicit connection from " join" to.

  7. We simply start with the base table, and which table we join to is not explicit, it's just implied within the join condition itself. So it can be a little weird when you generate it and it doesn't sort it out for us sequentially. The last strange feature is that Looker has this weird thing for dates: if the source field is called "closed date", it will group it into a dimension group called "close", essentially truncating the date, and then just add closed date, closed week, closed month, closed quarter, closed year.

  8. And if you want to refer to the closed date below, you just type a dollar sign and curly braces closed date. It will take this time period from this group of measurements. Similarly, if you didn't have the underscore "date", the rest looks exactly the same. You will still call close date through the dollar sign and curly braces.

  9. However, in Omni it looks like this: if we have something called close date, then it's just an output date field. And for reference, we call it close date, you know, bracket date. So sometimes in the frontend it is displayed as close date date. However, if it is simply called close, we call it close, bracket date or month, week, year, regardless of the time span.

  10. So, I think it's a little complicated. I don't think these problems are impossible to solve. It probably just requires a little patience and code tweaking. But ultimately, this is where it can get a little more complicated because, you know, we have to guess what the actual output date field should be. But for the most part, it should, at a minimum, be a great accelerator for very rapid development.

  11. Um, actually after you got that set up, we were able to very quickly migrate about a dozen Looker views for this client , migrate a few different researchers as connections, recreate the themes, and then all we had to do was rebuild the dashboards on the frontend. So, thank you very much. I appreciate it. Have a nice weekend everyone.

  12. Happy Fourth of July. See you later.