Omni demo: Omni's dbt integration

Omni · August 30, 2024 · 6:53

Transcript

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

  1. hey there here to talk about omni's DBT integration the DBT integration has three main pillars today the first is the ability to pull in new information from DBT this includes things like View and column level descriptions as well as absorbing net new columns net new tables table name changes or field name changes uh at the database layer into Omni seamlessly for end users to interact with the second is the ability to push things out from Omni net new to DBT including net new models which we'll touch on the third is the ability to actually Point Omni from the production DBT environments back to a development environment and take a look how your content might look and understand how changes you're making in DBT and development

  2. are affecting your bi layer this can help you protect against downtime or breaking changes as you can stage changes get those things ready to go in Omni and when you make the move from development to production on the warehouse side we can go ahead and accommodate that in Omni and lock step as well so let's go ahead and jump in to talk about a few of these open up one of our order items topics here and I'll pull through a field uh in particular margin just to show that this is a field that has a description we can see that on right click here as well as hovering on the information icon these can flow through from DBT and will be automatically updated into Omni

  3. so you don't need to duplicate any work by creating descriptions in the DBT layer and then having to go through the painstaking process of recreating and implementing those in the bi layer as well secondly something we're able to do here is very easily create net new models that we can push back to DBT so let's create a query here that could be something even very simple like just a created at month in count star and if I go I can see the SQL that omni's writing for this but more importantly if I go to the model menu up top here I can go and select this push to DBT option this is really great for when you know there's certain things that you already want

  4. to codify at the warehouse layer and you want to move down uh immediately and have a nice way to shift that logic in in a way that plays nicely with the way that you're building your tables and your house today you'll see that there are a couple different parameters here we can give the model a name we can choose the branch that that moves to or use the randomly generated one as well as a commit message lastly we can see the SQL that's generated here to provide uh up to the DBT model and one of the things you'll notice is we're actually building this on an existing DBT model where we will use the ginger refs uh and that syntax for templating where possible to

  5. continue to build on existing things that you might have already created in DBT and that we're playing nicely with other parts of the stack there if I were to go ahead and hit push this will open up a net new branch in my D in my git repo that I can go ahead and open up and take a look we'll see that same Branch name that we had talked or uh written in there earlier our commit message and if I scroll down also the model name and the SQL as well from this point on we can actually integrate with any git processes for things like cicd uh poll approval requests or mandatory approvals or even things like get action as well from here you can

  6. merge that into your branch and then edit that however you might like in DBT or move that around and then from there what we can also do after you've hit a DBT run is very seamlessly absorb that table back into Omni let's go ahead and take a look I'll go back to our workbook here and I'll go into the model where I can access it from the model menu if I go under edit model here and then into shared and when we're in the shared layer we have the ability to go to the model menu up top here and hit this refresh scheme button this is also available to do on a schedule or via API endpoint where folks have hooked up scripts that will

  7. execute a DBT run and then pull right into hitting the endpoint for syncing the schema once that new table's been created this will allow us to seamlessly absorb net new tables net new columns column name changes table name changes and then using our content validator over here on the left we're able to go and review anything that might have changed or broken and make Mass finding Replacements across the entire model for ease of use up dating uh for any changes that you might make at the warehouse layer now if I flip back to our model in the IDE here what we'll see is if I go into a file for a specific table such as our order items table we can see that there's some

  8. information here coming from DBT we can see that these descriptions for the uh view description here for example is coming from the DBT layer and even uh some others at the column level as well as I scroll all the way down though what we'll see at the very bottom is we'll also pull through the DBT and fake and this is where it makes it nice and easy for end users to come or for uh admin users rather to come and see the definition of those models without need to pop open a bunch of different files and track down for example how something like month since sign up is actually being calculated we can just see the compiled code definition of it right here great so

  9. we talked a little bit about pulling through net new columns and tables and absorbing information from DVT including descriptions how we also pull through those configs as well as the ability to push out from omn to DBT the third pillar of this is really around what we call pointing Omni from a production environment to development environment and what I can do is if I enter into a branch here we'll see that the list of tables actually in this Omni DBT CH schema changed and if I go ahead I'll exit just to show us what that looks like where we can see we don't have a table here called cat vids uh but if I go into the franch here into DVT demo we now see

  10. a cat vids table the way that this works is we can actually build out different environments in Omni uh to replicate and mirror DVT environments I'll go ahead and click on one of these as an example where we can see we can set the target schema we can have Target names for if you're using something like generate schema name macro and DBT we could accommodate that as well as any environment variables that you might want to create this can also be done across databases depending on the structure that you might have a DBT in your warehouse today now back in the model you'll see up top here we have the ability to actually choose the environment uh that we're actually pointing the branch across so

  11. you can see we're in this DBT demo Branch I can choose to look at my production environment I can look at one of these other environments here that will have a different set of tables available and with that when we switch the environment we'll actually see the content underneath change so in that way we're able to take a look even back in that content validator over here on the left to see what might be broken or might be different in these scenarios versus scenarios in our production environment so it provides a lot of power for users to plan ahead and understand how their changes are making impacts of the bi layer prevent breaking changes and also just have a more holistic development cycle from the

  12. bi layer uh to interface nicely with DBT and the warehouse those are the main pillars of our DBT integration would love to chat more if you have further questions please feel free to reach out to us and let us know if there's anything uh that would be good to cover in more detail thanks so much