
How dbt + Omni work together
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
So, congratulations to everyone. Welcome to our webinar with our friends from DBT. Today we have Victoria Perez Mola, who leads the resident architect teams in EMEA and APAC at DBT Labs. She started as a practitioner, then found her calling in helping teams implement best practices, and now she helps clients. So she may have worked with many of you on your DBT implementations and refining your methods.
Victoria will talk a little about how she uses Omni in DBT. But before that, we invited our CTO and co-founder, Chris Merrick. Chris will do a quick overview of Omni for those who may not be very familiar with our platform. He will also talk about how we work with DBT and spend most of his time demonstrating what it looks like in the product, specifically our two-way integration between Omni and DBT.
We hope that today we can show you both sides of how it works. What does this look like for data teams, how does it impact your processes and workflows, and your stakeholders. Before we begin, I want to make a few organizational points. So, first, we keep a record. This is the most common question we receive. We are keeping a record.
You can get the link later and come back to it if you miss something or want to share it with a colleague. Secondly, we will answer questions. There are several different options for how to place them. You can write them in the Q&A section below or in the chat. We would prefer you to write them in the chat.
There are two reasons for this . We have additional Omni specialists on chat, so this helps answer your questions faster. Plus, if you have a question, we assume someone else might have one too, so it allows you to interact and learn from each other . And finally, during the webinar, I will add relevant links to the chat .
So, I think...oh, sorry, we can move on to the next slide. I forgot to say " next slide" for Chris. We have great speakers. With us are Chris from Omni and Victoria from DBT. So, I think we're ready to get started, so I'll hand it over to you, Chris. Perfectly. Thank you very much, Tam, and thank you, Victoria , for being here.
And thank you for the introduction. So, as Tam said, first we'll do a quick introduction to Omni, and then we'll go into detail about Omni and how Omni and DBT work together. But first, a quick overview of Omni. Omni is a platform for reliable AI analytics. The most important thing for this webinar is that the Omni story started with me and my two co-founders.
My co-founders, Colin and Jamie, were product managers at Looker. I came from a data pipeline background, working as a CTO at Stitch. And also wrote the first few lines of code for the open source project DBT core. So part of the original idea for Omni was to understand and think about how to bring these two worlds together.
You have two co-founders on the deep reporting and BI side, and I'm on the data engineering, data pipelines, and DBT side. We knew we wanted to create a platform that would bridge these two worlds, while also providing an end- user experience that would satisfy both those closer to DBT and traditional BI professionals. So, Omni is a way to interact with your data in different ways.
We often say that we want to adapt to the needs of our users and allow them to use data in the way they are comfortable. This means that financiers love their spreadsheets, traditional BI professionals prefer a point-and- click interface or even SQL. Everyone loves a good dashboard, depending on the use case. And of course, with the development of AI, a lot of things are becoming very chat-oriented and conversational, right?
Ask questions about your data—get reliable answers. However, at the heart of all this is a powerful semantic layer that ensures that you get consistent and correct answers, as well as the ability to maintain this system over time. This semantic information can come from DBT, from your data warehouse, or directly from Omni. So, when thinking about DBT integration, specifically with Omni, we noticed in our conversations with clients and professionals in the field that many were doing great work.
They decide to implement DBT for their data. They put a lot of effort into designing their DBT models, carefully thinking through the architecture of their structuring, sometimes spending years of work to make their data truly clean, reliable, and trustworthy in DBT. And then there's a big gap between DBT models and the point of their consumption, right? These are dashboards using DBT models and analytical tools for end users.
All of this work and discipline put into managing DBT changes, testing, ensuring CI passes before DBT merges, turns into a “ fingers crossed and hope” strategy at the last stage to make sure any DBT change is accurately reflected and reaches the dashboard or reporting tool. And that's really what we observed, that was the best anyone could offer on that front, right?
We simply didn't have better answers to the question of how to ensure that change management across these two systems was consistent and robust. So this is one of the key problems that we set out to overcome. What if we could build integration between the reporting, analytics, and AI layer in Omni and all the DBT metadata underneath it, to leverage metadata from DBT to enrich BI, and also manage changes across both systems as holistically and consistently as possible?
This is where the idea of integrating DBT into Omni came from. It really has a lot of built-in features. I want to introduce you to them. Take a quick look at all the ways DBT integration works in Omni. First, a little context about how Omni works. So Omni is an analytics platform that runs on top of your data warehouse, and DBT is somewhere in the middle, right?
Today, when working with data, it is extremely important to have data semantics, that is, a powerful semantic layer that dictates exactly how the data should be used , imposes restrictions, and possibly manages access rights. In the case where Omni runs on top of DBT, such semantics exist at both the DBT and Omni levels. And indeed, there are certain best practices on how to implement this.
It's a bit like an architectural discussion about how your team works and how you want to work. But ultimately, Omni extracts this semantics from DBT and brings it into Omni. We can also pass this semantics back from Omni to DBT. So, this is a very general overview of how all these features work together. Omni reads descriptions, constraints, SQL, and model definitions from DBT and makes them available to the end user.
Omni can also record all of this metadata, and even update DBT models and other metadata, such as exposures, back into DBT. So let's move on to the demonstration and see how it works in practice in a real environment. In fact, this is a test environment, not a real one. So, this is my demo environment. Wait a second.
Let's assume we made changes to our DBT model. Or perhaps to several DBT models. Here are the changes in DBT. We've put a few changes together here, have n't we? We have a new consumer value model, changes to the shipped orders model, and even a few new flow metrics. So let's take a quick look at this code.
You see, we have a new model here with nice SQL. We have a couple of new and changed names, a changed name for this particular dimension, and also a new dimension. So, we have changes in DBT. As you can see, all of this is in a branch. The branch is called demo/ customer value. And let's figure out how this will impact all the dashboards and reports we've built based on our DBT models in Omni.
So , let's open Omni, and let's start, perhaps, with the main page. This is what the Omni homepage looks like. Let's move on to our development section. Let's choose the desired model we are working on. Believe me, this is just a demo environment. In reality, no one has that many models. We go into our development environment, and immediately see that we are in a branch.
Omni has a concept of branching. I have already set up this branch. A branch not only creates a sandbox in Omni, like in a Git environment, but also allows you to tie it to a DBT environment. Omni has a really powerful and comprehensive integration with DBT, and I can go into the DBT section to see how that branch's binding is set up.
This branch uses Chris's DBT dev environment, which defines the schemas used in the data warehouse. It defines a database, or any other DBT environment configuration, that can be saved and bound here. Additionally, it points to a branch in the DBT Git repository. We now have a branch in Omni tied to a branch in DBT, as well as an environment in the repository where this DBT code is deployed .
Since we have the branch set up, let's see what works and what breaks due to these changes in DBT. After opening the Omni IDE, we see a red “time to ship ” field at the bottom with a “not found” error. This is the exact field we edited and renamed in our DBT model. This is exactly what we expected.
We are in a branch, and I want to emphasize: in a production environment, everything works perfectly. So , we have this corrupted field in the branch, while the main system is working fine. Let's demonstrate this. I'll remove the Zoom controls now. So, here is a dashboard built from this data. We...this is a working version of the dashboard .
You see that everything is working properly. I'm going to switch to a branch in this panel. And you can see: I'm in the same branch, so it points to the DBT environment. Oh, I'm sorry. You need to go to your branch. And you see, when I go to this panel in the DBT environment, we have a corrupted chart, right?
And this chart is broken because it references the wrong field. So let's fix this. I'll move over here. I have this error in my model development environment. I'll open it. So, the system tells us: " Okay, this ' time to send' field no longer exists, right?" Because we changed it to "days before shipping." By the way, we can also see the DBT model here.
So we can get a little more context on what's underlying it. So let's fix this. Now I'll find...One minute. I'll find the correct fix here. So , we need to go back to the "days before shipping." And Omni actually has a handy way to fix that. We actually have a few options for how we can fix this.
We have an Omni content validator that we could use. And we can find and replace all references to it. You 'll see that we can do this in a branch as well. So, we see the same error. We could use our search and replace function. It's a long road. This is a great way to do this, but an easier option is a handy feature called aliases.
So we can go here, to the definition of the "days to ship" field, and add that it has an alias of "time to ship." Okay, I'm going to keep this in my branch. Great, our validation problem is gone. Let's go back to our dashboard and refresh it. Great, our panel is now fixed as well . So, the branch is now fixed.
We can walk through, check if other potential points of failure are fixed, fix everything else, and then merge the two things together. So, this “ hope for the best” strategy can now become a robust change management strategy where we can test if our dashboards are broken before hitting “ merge” and then merge DBT and Omni at the same time.
Uh, so, thinking about the other great benefits of this integration. One of the key advantages is that you don't have to add the definition twice, right? So, going back to my model, Omni has connection records that help you understand how joins can be used in the product. We can read these connections directly from your DBT model. So if you have a constraint in DBT that determines how the connection works, we read that right into Omni, and you see that connection coming directly from DBT.
If you change this connection in DBT, Omni will automatically get a new definition and you can continue working without re- defining anything in the Omni layer. Meanwhile, some other metadata is more end- user oriented, right? So we can help our business users better use and understand data by pulling up more of this DBT metadata. So, let's open the data view here.
Let's look at the topic of "customers" and "customer value", we'll just open up a few of these fields and you'll see: okay, we have a churn risk field , a value level field. What do these things really mean? Chris, while you opened up themes, I know we were going to share this a little later, but could you explain for those who are not familiar with Omni and themes?
Could you tell us a little more about the topics and why they are important? Of course, with pleasure. So, in Omni you can model your data, you can model your domains into what we call a "topic." And think of a topic as a union tree that defines a set of views that can be connected using predefined relationships.
And then you can explore that data in an interface like this where you can work with different views and bring all the data together. So, as you can see in this preview, the topics in this model are customers, orders, shipped orders, a pretty typical dataset for e- commerce. And as I said, think of them as data domains.
So, going back to looking at DBT metadata : when we open our fields, if there are descriptions in DBT , they are automatically pulled up in Omni. So I can see them here. If I look at the data, you'll see this little informational tooltip. I can hover over it and see more details about what those fields actually mean.
I can also see this when I view the fields here in the field selector. I hope this is visible in the screen demonstration. You see that the value tier description is detailed, right? Another thing we can do: as a business user, I can have more context on some of the definitions than the analytics team, right? For example, I might know how we assess the risk of customer churn.
So what I can do here in Omni is edit this description. I can go here and click " edit". As I said, it says " predictive score", but I know that's based on purchase history. Anything above 80 is a red flag. Class. OK. Now I can update this. I'm working in an Omni workbook, and when I update this description, now if I hover over here, you'll see that the description is updated.
There's also a little yellow dot here that says, " Hey, this is the change you just made." "It was made in this workbook." In fact, when you make changes, they initially only appear in the workbook. So I can open the changes in my workbook and see, "Okay, the churn risk field has been changed." Right now, this change is only visible to me in this book, but let's say I want everyone to see it, right?
This is important for the entire organization to understand . So I'm going to add this to my branch. And now it's in the same branch as the other changes I'm making for this DBT model. I can even send it to DBT if I want to save it there. So I can go to my IDE and click "push to DBT".
And I'll select the option to sync descriptions . Um, and I'm going to... I usually give a nice descriptive branch name, but this will be quick. I will use a random default name . I can create a pull request. And I'll create it based on the previous branch so we can see the changes I just made. And now you see that this updates the description field in DBT according to the changes I made.
So, the metadata is pulled from DBT into Omni , and then we push it back into DBT from Omni, allowing business users to add their context. They may never open the DBT repository, but they can definitely do it, hand over the data to the team for validation , CI run, and merge. Another great feature of our integration—we can pull up DBT state tiles, right?
So we have a DBT state tile here. It shows us that this data is fresh. So we can provide this sense of trust and data authenticity right in our dashboards. I can hover over a state and it will provide details about why we believe this data is correct and reliable. We can even send exposures back to DBT so our teams of analysts and engineers understand the provenance of our data.
So if we go back to our IDE, I'll step off this branch for a second. If I submit changes to DBT using a different configuration where I only sync exposures, I can create another merge request. And here you will see that the changes are to add this dashboard exposure, which now references the new field “ship order items”.
So , that's it. This allows our DBT teams to maintain the relevance of the data origin if they use exposures to do so. OK. The last part of this demo before I hand over to Victoria: what if you are a user who doesn't work in a BI tool all the time , but you need to update something or just visualize data based on, say, DBT models?
So, you can actually do all of this through the CLI as well. Omni has a command line interface (CLI). We also have a set of agent skills that help it understand how to use our CLI. So I can say, "Okay, use the profile associated with this Omni account." You know, create a bar chart or, excuse me, add a bar chart to my existing dashboard in this branch.
So, I'll let this work. This will run our CLI to find all of these dashboards and branches I described, and then apply the update. And when everything is ready, we will be able to see it directly in Omni . This allows a CLI user or someone who wants to perform a batch of operations to do so very efficiently through their chosen tool.
In my case, it's Cloud Code. OK. He completes all his tasks. Let's just look at the dashboard and check. It's not ready yet. It is also important to note that the CLI can work with branches. So all of this has to happen directly in the branch I'm working on. As you can see, it is focused on this particular branch.
OK. And here, please. We have our new challenge, or, excuse me, our new diagram, created via the CLI. And it's loading right now. Here she is. Based on this new field that we defined in the branch. Okay, I'll give the floor to Victoria. The last thing I won't demonstrate because we're short on time is that you can also do all of this on the DBT semantic layer in MetricFlow.
We integrate with MetricFlow in addition to raw DBT models. So all these features are applicable to MetricFlow as well . Okay, Victoria. Continue. Yes, thank you, Chris. I did n't actually know about this CLI. It was very interesting. This is also one of the reasons why I am here today. I've seen a lot of this before , and in DBT we use Omni.
We have a great team of analysts, and they are the ones who are doing everything that Chris was demonstrating today, including CLI . If you've made it this far without knowing what DBT is, it's a code-based data transformation tool. And it sits between your sources and Omni, as you can see here. So we have a number of sources, like product telemetry, CRM, financial data, service delivery, that our data team takes and turns into user-friendly data marts that can then be presented in a tool like Omni.
So data users like me can use this to answer questions we have about our work. So, how exactly do I use the data? As a Professional Services Manager, my role involves working closely with our clients both pre-sales and post-sales . I speak daily with our clients of all sizes, scales, and maturity levels about how they are going to implement DBT.
How are they going to migrate? And it could be something as simple as moving to a single project, or planning a migration for the next 3 years. I also constantly switch between different task areas. Of course, these are the customers' plans for after-sales implementation, as well as ensuring that they get the most out of the service. In addition, I have a team of 10 people who report to me, and I also make sure that they are satisfied while providing these services.
This means that I work with a number of showcases and datasets coming from the sources I mentioned earlier. And I never linger on any of these data sets long enough to actually understand what they're about. This means I am consuming our internal data. I never create them. And I need that data to be easily accessible, interoperable, and self-serviceable.
In most companies, this usually requires a lot of tickets in Jira. Luckily for me, we use Omni at our company. And I'll illustrate this with one of the specific use cases I had recently. I was on maternity leave for a few months this year, which caused me to forget even more of the table names in our data warehouse.
Which makes it even more difficult for me to find answers to my data questions. So, as soon as I returned from maternity leave, one of my colleagues said they were waiting for me to take on a project to support our largest clients in migrating to the latest version of DBT. I had many questions. Most importantly: how many accounts are we talking about?
How long does it actually take for an account to update? And what potential revenue will we unlock through this initiative? I had no idea where to start. I had no idea . I didn't even have time to run the latest version in that first week when I got back to work. And all of these answers are quite complex, covering several sources that I mentioned earlier: product telemetry, CRM, as well as data from our delivery services.
I do n't know any of this data. So I did the very first, simplest thing you can do, but it's also the right first step: I went into Omni, and as you saw, there's a chat where you can ask Omni, and it will tell you what reports already exist. These are reports that have already been prepared by the data analysis team.
And these reports are based on definitions that the data analysis team has agreed upon with the data owners. This means that when I open these reports, they already give me answers to many questions. But they are also designed to answer questions that data owners and the data analysis team have asked themselves. But those weren't the questions I was asking, were they?
Importantly, I didn't have to reinvent anything , and from the beginning of my research, I was in agreement with the product and development teams on how we should determine which version is the latest for our customers. Since my project was a level deeper in detail, I needed to get answers to a few more questions . I was able to research this directly in the existing report.
In most companies with most BI tools, this requires a ticket in Jira, a message in Slack, a request, or, for someone like me, exporting data to a spreadsheet and trying to analyze it there. In Omni, you can easily right-click , as you see here, and start exploring that data. So, this allowed me to delve into the analysis based on the report I had already found, with definitions already established by the data owners, product team, and engineers regarding versions.
And that allowed me to use that to filter and identify specific accounts that I needed to identify for migration, right? So, in my case, these were accounts that didn't have the latest version, as well as those where the migration complexity had already been calculated and defined by the product and engineering teams , to make sure I was filtering out only those accounts that we could successfully help with the migration.
Since I also needed to understand what revenue we would generate from these opportunities, I was able to pull in and integrate information from our CRM system. This again allowed me to come up with a great list of customers we should focus on, considering the value we would get, and also to make sure we were successful with the migration difficulty metric I was able to use.
And that same day, I was able to discuss it with our customer support manager. It's very nice that Omni has once again allowed me to use existing definitions. I didn't have to invent or rethink anything. Even though these datasets may never have been combined before. But I still had a few questions I was looking for answers to.
And since there’s still no report I can examine for a program that doesn’t exist about how we’re migrating our customers, I did what I do very often—I reached out to my Blobi work assistant and asked an open-ended question: What are we seeing in the data about customers who have already migrated to our latest version? And what is the difference between those who were able to achieve success and those who were not?
And what's nice about Blobi is that it has some structure to its responses. First of all, it starts by filtering by relevant topics, which I think are already clear after Chris explained them earlier. And the nice thing here is that he, again, doesn't invent anything new. As I said before, I don't know tables, their names, or their models very well, but Blobi does.
This means that the answer stays within the boundaries of what has been learned, ensuring that I use and re-apply those definitions that already exist and are established. The second thing to see in the answer is that it provides general conclusions. This is a kind of quick summary of the results , which allows you to understand whether you are moving in the right direction regarding the conclusions that Blobi found based on the data already available.
And the third thing he does is explain the logic and processes. Since I've written a lot of SQL in my life before, this allows me to actually look in and see what it does and confirm exactly how that SQL is written. And that means I don't need to trust the "black box." I can truly trust the data reflected in these answers.
So, I can be sure that I am getting the right answers. And that I could even recreate it myself. And lastly : it suggests other questions for you to consider. So, a few questions here and there—and I was able to easily figure out how long it would take to migrate to the latest version. And not only that, but also to understand what prerequisites I need to take into account so that our architects can successfully work with these clients during the few weeks designated for the program.
So with all of that, I was able to develop a program in just a few hours on how we should solve the problem of migrating customers to the latest version. I knew exactly how many hours and for how many weeks I needed to hire an architect . I also knew how to prioritize these clients because I was able to combine this with the service delivery information to take on those clients we were already working with first.
And also how we will measure the success of this program going forward, making sure they have migrated and are getting the most out of the latest version. I did all of this without ever asking the data team for help, because everything was already in place. And Omni helped me simply find the data I needed to get those answers.
I didn't have to switch between tasks. I did all of this, as you saw, in the Omni interface and I did n't have to create anything, which is also very important for data users. I know that because of the way I've built reports and written SQL in the past, I could potentially create something like this. But that's not the best use of my time today.
This means I can focus solely on understanding what questions I need to get answered and shaping a successful program. And, actually, as a result, we now have several customers working with our architects to get all these great metrics that you see here from our Dalton, the latest version of DBT. I think to sum up what's important for a data consumer is: make sure you start with a question, and that's exactly what Omni allows you to do, right?
Because I'm no longer limited in the data I have, because I can even ask this question to Omni, and it will probably help me. You can start with real questions that you need answered, and then move on to what you already have. This will already give you some advice and guidelines on where to go next. You can combine and drill down on data to take advantage of these sources and delve deeper into your analysis.
And you can use AI as a product because it stays within that management model, right? So, you are safe and you know you can trust the data that AI provides. Last but not least, you can save, share, and replay all of these reports. So all this analysis that I prepared, I was able to distribute to make sure that everyone else could also check, verify, and actually reproduce that analysis that I created.
So, to sum up, I think none of this would be possible without the basic connectivity working . Chris, maybe you can explain how this works? Yes, of course. Thanks for taking us through all of this, and actually, summing up everything we just talked about, when it comes to how do these things work together? This is a two-way integration where Omni pulls data and information from the DBT layer and the storage layer into Omni at the point of consumption, and also allows users to push that metadata back to these layers when those users have additional data models, context, or descriptions for the team running DBT.
And that, really, trying to optimize these workflows so that these two teams and these two types of professionals can work together seamlessly is a critically important advantage. And then, as we just showed in the demo, the change management process where you can actually work on the DBT branch and the Omni branch in parallel and merge them at the same time is a huge advantage , because you don't have to cross your fingers and hope that the changes in DBT don't break everything in the system.
So, that's all for today in our webinar. Thank you to everyone who joined. Victoria, thank you for coming and telling us how you use Omni at DBT Labs. This is extremely cool and exciting. Any parting words, Tam? Yes, great. So, yes, thank you very much. Thanks again to Chris and a huge thank you to Victoria. I especially liked when you said that your work friend was Blobby.
I feel the same way . Blobby is just my homepage in Chrome when I open a new tab, and even if there's already a dashboard or something like that, it's much faster to just ask Blobby than to search for the things I need myself. So I feel the same way. Uh, thank you very much to everyone who joined.