Dynamic dbt schema improvements (launched)

dbt modeling workbook · Friday Demos · May 31, 2024 · 4:51

More work to improve dynamic dbt schemas in Omni - making sure we can adapt to any style of dbt modeling

Transcript

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

  1. any more stragglers uh yeah I think I just got ready to be able to demo so let's try this out sorry it's gonna take me just a second to figure this out okay so hopefully you're seeing my custom schema names IDE um yeah so this one might be slightly hard to explain but I'll do my best it all has to do with the BBT Dynamic schema switching stuff and uh what this feature is about is that uh a lot of times users of DBT will uh do things differently in Dev uh versus prod with regards to how they like name their schema and you can do this with a DBT like custom macro that lets you give have full control over how the schemas um

  2. work uh so everything I've demoed kind of up to this point is the vanilla DBT experience where you have schemas called like DBT underscore your username underscore some suffix but what you can do is um override that to like where you don't have DBT in the name at all so in this case I have a model in this sales schema um uh and this is a DBT one so you can see it's like pulling in DVT information uh so in my production DBT setup I have sales and then I have this default name uh so you can see there's like country codes organic users and then this sales model is in a different schema I can't talk right now um but in development everything is

  3. going into one schema so there's just one development schema and we've seen this with a few customers recently where they're doing this in development everything goes into one schema just to like not muddy up their warehouse with a bunch of schemas for each developer um and so what was happening before with the DBT virtualization stuff is in production you would have Omni DBT and Omni DBT sales but when you would switch to a branch uh this DBT sales would disappear because there is no sales schema for your development experience and the sales would move into Omni DBT which would prevent you from working on this sales view in a branch and promoting it properly um and so that's basically just uh fix now so if

  4. you switch to a branch this is now pointing to my development thing and the structure is the same even though uh as I just said my development schemas don't actually mimic this structure um uh yeah so that's that's it um if that didn't make sense to anybody let me know but uh yeah I think that's it do we feel like we're keying in on the or should I phrase this do we feel like we have a pretty good understanding of the flavors with which people build out their DBT model like approaches at this point or are we sort of like learning new ones over time you just mean like in terms of those opt for vanilla DBT schema setup versus your custom exactly like is

  5. is there an enumerated list of all these things or is it like every single one is a unique like way of approaching how they're handling schemas and DVT and all that kind of stuff so I would say for my own personal experience as well as what we've seen so far with customers although it's not a huge number of them that we've gotten feedback from the majority of them are using the vanilla experience and then when people reach for this customized behavior um the reasons seem to be one is just to get rid of the DBT prefix everywhere or to get rid of the prefixing entirely and just have you know analytics schema and sales schema e-commerce whatever without all this prefixing um and then the

  6. other use case is the development like putting everything into one schema just to put it all in one spot in development um I haven't seen anything other than those two use cases for the customized schema thing okay that's good then yeah we could just have flavors of the deployment I guess