Dynamic schemas in dbt

Buck Ryan · Friday Demos · September 13, 2024 · 2:53

New dynamic schema controls with dbt

Transcript

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

  1. I have a demo that should take like 30 seconds uh I don't think anyone ever needs to apologize for demoing to be clear like everyone wants I'm not apologizing I'm just giving you guys if you guys had five hours of demos I'm gonna be on the call for five hours I feel like most of my time is just spent finding the right window um okay so I uh I built a thing on top of the dynamic schemas work that Conrad did back in the day so my portion of this is pretty simple and easy and this might be the first demo I've given that's not DBT uh so ignore that these are dvbt that's just the demo data I have to work with um basically

  2. Dynamic schemas can now work with databases and cataloges um so show that I've got a dynamic schema that's pulling from this DBT schema I also have this database um I have this query that's pulling from my prod thing and I will change the US user attribute for myself to now pull from a database scoped schema save that refresh and now it'll change where it's pulling from um you can change that in the modeling too so you could have fck demo scenario 3 b.

  3. DBT um and you can't really see it but it just changed the schema that it's pulling from that's it it's actually really cool I um you know like you mentioned I built the dynamic schemas early on for a use case which is like you're so customers embedding and they isolate their their customers data their you know from from each other by creating separate schemas well it's probably very common that they actually want to isolate by creating separate databases and so this is awesome that that um we got this in as well so thanks for taking that the next mile Buck also while we're on the note it's a little bit uh tangential but just I continue to be really impressed by like how we we

  4. build these foundational things and then they can it kind always surprises me in the best way when they work together for New use cases that we didn't originally consider so the example here is for uh Dynamic schemas Jack asked me earlier this week he had a prospect that has their data or wants with their data in like different schemas or databases but then do email bursting on it uh like basically scheduling and because we have Dynamic schemas and it's user attribute based and then we added the attribute uh like bursting option to the schedule form all aori like it just works which is just epic so that's awesome