Creating and editing dbt models from Omni

Omni · February 26, 2025 · 4:51

Transcript

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

  1. at Omni we are always improving and iterating on our 2A DBT integration we strive to be the bi tool that has the uh most integrated experience between the bi layer and the Transformations layer and in this demo I want to show off some of our latest features that enable that so what I'm going to show this demo is our DBT IDE which will allow you to view your various different files from within your DBT repo and then I'm also going to show you how you can create new models or edit existing models directly from within Omni so here I am in my Omni IDE these are my various files associated with my Omni model but I I now have this new option to navigate to

  2. my DBT IDE so from within my my Omni environment I can actually browse all of my various different files Associated uh with my DBT project so we see here if I jump into my March you can see I've got my order item SQL and this is how that that model has been um defined we're not just stopping though at letting you view those files and we're also going to let you touch and feel the uh this the model itself run SQL and even update the SQL behind it so I'm going to click edit in workbook and this now is going to open up the Omni SQL editor for me pre-populated with the SQL that was used to create uh that model you'll see here I

  3. am in DBT mode and that means I can actually use DBT refs to reference other models uh or to reference sources as well from my database again keeping consistency between the uh between the SQL that you would write in gbt and the SQL now that you can use in Omni so from here then let's say I want to test out a new field that I want to add into this model so for each of my order items I want to calculate how many days has it been uh since the dash users previous order item um and I've got the SQL query for that here and that's going to to add that as a new field to this model so I can go ahead and I

  4. can run that and I can see that you know when this run completes I now have that new field here um so I'm able to to validate and verify that the results here are as I would expect from here then maybe I want to go ahead and add this to a branch uh on my DBT repo um and then you know continue the rest of my Dev velopment experience to go and add this to my production models so from here I can come up and click model and I can say push to DBT repo this is going to prepopulate with the DBT file name that I I click I was in when I clicked opening workbook at the beginning so my my models Mar Ecom

  5. order item SQL I'm going to give this Branch a meaningful name I'm going to say this is ADD um time since previous order um and then I'm going to say this is my commit message is add a new field and I'm going to go ahead and I'm going to push that to my DBT repo so see here now that has given me a hyperlink over to GitHub and and we're going to be able to see that new field that has been added to my Branch within my DBT repo similarly if I open up my DBT Cloud environment over here as well this does work as well by the way with DBT core um but DBT cloud makes it really easy for me to go ahead

  6. and check that branch that I've created so I can go and I can change Branch we'll see there is that branch that I just created is now available I can check that out and then I can go and I can um you know carry out the rest of my development to uh to make the various changes that I might want to make from that from here then of course um now now that I've added this new field to my uh to my model within my Branch I can now start utilizing the rest of omni's DBT Integrations which I have written about previously um so we can go ahead and check the output of this uh of of of these models um by pointing Omni dynamically

  7. to my development Branch when we're happy then with this we can merge it into production and use omni's schema refresh to automatically pick up this new field uh in my Omni models and surface it to my end users um and then any descriptions or any additional metadata that I might add about this F they're also going to be pulled through into Omni as well so hopefully what you've seen in this demo is the latest way that Omni is trying to have a single coherent integrated experience between developing in the bi layer in Omni and then pushing those changes down into the Transformations layer using DBT