
Dynamic dbt environments in Omni: Omni's dbt integration
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
so I've been doing some development in DBT um I've made changes to this model and if I jump over into GitHub we can see exactly what changes I've made so I have added this new last update that timestamp into my model um and I've also taken my sales price and I've multiplied it by 100 as well before I open a pull request here I want to make sure that this uh this looks exactly as it would expect within my bi tool I want to see what the output looks like um and I also want to check that there's no unintended consequences from any of the changes that I have made so if I jump over now into Omni um and I want to go onto
a branch anomy so I could create a new Branch or I could use this existing branch and now when I choose that Branch I can choose what DBT environment this is going to point to so as I've been doing my development the output of my development models is being written to the DBT team development schema in my data warehouse so I can choose instead to point to that so I'm now poting to that and here um now i' I've got my my new additional Fields so for example we see here this last of data.
field is is part of the automatically generated fields for my Omni data model uh which points to my development environment so I can query that now by jumping over here into my Omni workbook and if I refresh again we'll see here again I'm on my branch and I'm pointing to my gbt SE team environment um and from here then I can go ahead and I can choose my last of dat of that field so now from here I can see that my output looks as I would expect we can see my queries are pointing to my dbts team development Branch um I can also check that everything looks as it would expect for my my changes to my Revenue so we saw that we changed
our total sales price so if I choose my total revenue here and again we can see our query is hitting our DPT SE team schema um if I was to swap back over and point to my uh public environment instead so my production environment and I refresh we'll see that revenue is uh 100 times less than it was so we can see here now we're we're pointing to our default schema instead of our development schema um so you know I've now checked my output I've checked that everything look looks as I would expect and then the last thing is I want to check there's any unended consequences so I might jump over into my dashboard and see that everything looks as I would expect so
this is me pointing to my production environment and again then I can swap back over onto my dptsc team I'll expect to see this these Revenue numbers multiply by 100 um and then we'll see if I've maybe accidentally broken anything else as I've been working so I can jump over into my gpts CM environment I can rerun my queries we'll see that this number has now changed because it's hitting my development environment with those changes on it um but I've actually also broken some stuff on my Branch as well so it's been super easy for me to check by swapping between my environments check that the the changes that I've made have um have worked as I would expect and also check if I've got
any unintended consequences and from any of my other changes and see if I've broken any content that I need to fix before I merge my changes in gbt