
Snowflake info schema installable model
Our first modeling code pattern for the Snowflake info schema - usage and billing info, soon to be installable
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I call it I I got a demo I'll do a different vein uh uh we don't normally do these uh but I've been thinking a lot about abstract models and trying to get that work that's going to and maybe I should another call out too thank you Stephen for helping me think about a effect models um but uh I uh was trying to think of a good example for it so I um had and thank you Chris for helping me get uh access to our snowflake data but snowflake billing and usage might be a good good place to start um so I built a dashboard on our snowflake data and this one maybe I don't know if we wanna probably don't want to post this
or maybe I don't know I don't think there's any this is our data but I mean I'll see what it looks like yeah and oh actually the the dash the dashboard looks a little bit gross um I built it on a much bigger monitor so it looked a little bit better than this but um and then maybe another another thing for us to think about over over time too now that I'm going on my laptop but uh basically built it was incredibly easy to actually build this dashboard I I followed a log post that snowflake had um uh where they recommended a bunch of um you know metrics and things or ways to break down the data to to look at to that you know
I built up in the model actually ends up being really pretty darn small um on top of the the base schema here um but the nice part about it is you know as we have uh have these modeled constructs you could basically build an abstract model this can become sort of a temp a templated version of of analysis so you can actually create like you know these things like the credit sums or just you know sums on Dimensions but um basically we could pre pre-build them so that you know as we have content that could be installable um as as well it could be referenced uh you know on top of it too so sort of um block like for for folks um yeah and
like I guess maybe one one interesting meta thing I I expected actually demo to be our biggest uh use uh by far and it's actually not like our our own internal use of of and I think some of this is programmatic stuff so like loading of data and um and uh DVT jobs that are doing like transformation to to enable us so it's not all you know ad hoc but but even still our actual internal use is bigger than our demo instance kind of interesting but it's small data set and how do you how would one install this in the future so we when I get the it's definitely not possible today um what what yeah what we'll do I is we'll have uh when
we have the ability to have abstract models and I we've got a PR working on it um now we just have that basically the core assumption uh is that models are tied so we do have abstract models they're just tied to specific connections which you wouldn't really want in in these cases to you want sort of a more a more abstract thing a true templated thing to that's not directly tied to a specific piece um in in this case I don't know if it's a huge deal you could just create uh you know install an abstract model that's tied to your snowflake connection and you basically would copy and paste in files we want to make that really easy for folks though so that it's
going to be easy to you know reference a remote git repo that has an abstract model that you pull into your instance and then have a reference where you extend that that remote you know abstractor templated model on your own individual snowflake piece that would basically reference all of the you know all of the underlying views that would be basically extended um together and then uh you know having content Sim similar as well so we we've got a ways to go for the full templated piece but the foundations are starting to be put in place so that was my my question there's there's two things going on here right one you've got the abstract model and the other is you've actually got some content built
on top of the abstract model yeah and and so where's how I'm curious where those things live or or at least what the vision is to I get the like yeah I can pull the abstract model down from git and to get that loaded into my you know into my model space and then honestly too it's giant handwave you know content sits inside git and and is importable or you know at least referenceable uh by by uh the instance but I think they you know we we clearly have to have version controlled content and we clearly have to have uh some mechanism for uh content to be installable which which we kind of do we actually have like Chris's apis have effectively like a yeah
a spec for it and we you know we don't have the git integration part there but like we have a means to export and import you know pieces of content which you could build on top of the abstract model in a in a way where it's all and you could sit it inside the same git repo and have it all be you know sort of seamlessly managed like we got a lot of the foundational pieces there we just don't have the sort of final Last Mile just the marketplace is missing the marketplace yeah