dbt Semantic Layer Metrics

Buck Ryan · Friday Demos · October 10, 2025 · 7:30

We're still working on bringing your dbt semantic models into Omni. We've extended model building to metrics in your dbt models, plus bit of discussion on future work.

Transcript

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

  1. Guess I'm first. Okay. Gave a demo a few weeks ago of some of the initial work on uh DBT semantic layer support. And here I am with a bit of an update. All of this is still behind a feature flag as you'll remember from my first demo. And in that first demo, I showed off basic dimension importing.

  2. Uh so an example of that is like I've defined this dimension in my semantic model. So it's called signup date and that gets imported here into Omni as signup date and it has the SQL. Uh so what has been added since then are first of all um more interesting expressions can now be parsed and imported. Uh the parsing is needed to determine like what type this column is primarily um but also to convert it to a uh like a internal representation.

  3. Um so that is working. We got that SQL in this dimension here. Uh and then as well uh measures are supported. So, I've got all of these different measures here. Um, maybe I'll hop over to this orders example, so it's not so overwhelming. Um, this total sales measure is getting imported here. Um, copying over description and converting it to a sum aggregate type stuff like that.

  4. Uh, so that's measures. There's also foreign key support through this concept of an entity. Uh, as well as primary key support. I don't have a good example to show primary key support but um it does work and foreign key support works as well. So this uh order to user foreign key stuff gets imported. All of these things get commented so you can tell where they came from.

  5. So this relationship is defined in the order semantic model. It gives you the file name which you could use to go find it in the dbt IDE. Uh and then I think that's everything that's in prod now be behind the feature flag. And then what is in progress is uh metric support. So you kind of combine all of the semantic model definitions that you have into your final metrics.

  6. And metrics are where you can add filters and um yeah do some interesting things. So that's in progress. I have this metric here that uh the filters don't work yet. That's I'm working on now. Um but it references a measure that I defined elsewhere and that is here. So um got this large order and it's got some SQL uh there's this feature called uh fill with nulls where you can define how you want to convert nulls.

  7. Um so that's converted to a coales when we detect that. Um yeah so this is in progress. Simple metrics will be coming soon and there's then two other metric types that will be supported and three that won't be because we just don't have an equivalent. Um but yeah that's where things stand. Are you going to create a new topic for every metric or what's kind of like how does that matching go?

  8. Uh we haven't talked about doing topics at all. Um right now what it's doing is measures are converted to a simple aggregate type measure in Omni. Metrics are converted to a metric type measure in Omni. So they both get converted to Sorry, I thought I thought I saw you pull up a topic. Okay, got it. Um, how are you actually testing the DBT subs layer?

  9. Like are you running open source metric flow or how are you interacting with it and determining? Yeah, right now it's um uh it's it's largely it's going through the docs and there's a little bit of uh dbt core will do a little bit of validation um to make sure that like your metrics are referencing and dimensions that exist.

  10. I think things like that. Um, but it's not it's not much. Um, for the most part, I'm trying to make the code as uh fail safe as possible. So, it will try things that even dbt I don't think actually supports uh in order to try to import it and then if not it will just silently move on.

  11. And we're talking about building out a uh a warning system so you can see why things didn't import. Um, so it's not just like hidden in the back end. Out of out of curiosity, I don't know if you can hear me, but out of curiosity, are there any like metric types that you're expecting us to not be able to support?

  12. Like I know they have conversion metrics and a few other things like soon, are you planning to potentially support some of these things down the road or are we saying like some of these we're just not going to touch? Yeah, I think some of them we're just not going to be able to touch because we just don't have an equivalent unless we were to build an equivalent in Omni.

  13. Um, and so the key are just window functions that we don't support. Is that I think that's the key one. Jack speak a little bit better to We should just build those. By the way, like convert metrics like you basically Yeah. It's like a window function. You create like a date spine and you're doing like a join on time joints, but they just do it all at once natively via like their own.

  14. Got it. Yeah. Yeah. So, at least for the foreseeable future, the three that we're going to support are what they call simple metrics. Um, uh, and actually, I can't even remember the other two. Anyway, derived derived in ratio. Sorry. There you go. Definitely we'll take a look at the conversion and cumulative, but there's some twists for how we handle things today and uh, and what's uh, the kind of comparatives there.

  15. Do we have any insight on how branching will work? So if you want to test a change in your DVD semantic layer and then like bring it through to the content validator kind of stuff, it'll all work the same as the existing branching workflow stuff works. So if you make a a branch in your git repo and you're making changes to your you know your semantic model and and metric definitions in that branch we'll pull them update the uh the matching will still work that like we'll see that you are referencing a model that is a different table name in development.

  16. So it'll still all be like segmented. So it'll it'll work the same as as everything else does today. Awesome. Thanks, Fox. Huge ahead of coal next week, so appreciate that. Yeah, cool. Uh, actually, wait, one lingering question. Do we have a place that we can demo that then? Jack and I are going to figure that one out.

  17. Working on right now. Yeah, perfect. Thank you. And by Jack and I, I mean Jack. Just wait until I show up with bugs, Chris.