SQL AI model suggestions

Trip Tate · Friday Demos · January 2, 2026 · 2:46

A first look at some new AI powered UX to extract modelable fields from your SQL. Can get out of your way when you don't need it, but also quickly provide a workflow to make sure you aren't…

Transcript

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

  1. All right, one more thing. This one is a little flaky. So pray that it works. Okay, this is a custom SQL query. Doesn't really matter what's in here. Um, but when I run it, I now just send it over to the LLM to analyze what's in it. And if I get lucky, it's going to tell me things that are modelable within it.

  2. Um, so topics, measures, dimensions, if there are any, and if you accept it, pops it over here into the workbook model. Nice. So, this is uh definitely experimental. Um, I've seen it kind of go haywire a couple times, so needs some it needs some attention, but um, kind of a cool little thing. That That's awesome.

  3. And And are you just passing the raw the raw SQL to the LLM? It's basically pulling apart. Do you do you do you pass it sort of like what the structure is of the model or? Yeah, it's um there's a I guess the chat already has like a context description for like this is what the model looks like and so I kind of levered off that to set set up the system prompt and then um like the user prompt is just here's the SQL analyze it.

  4. Um, and then I had to give it like a slightly different structure for what to return um for to work in this way. But um, yeah, this this is awesome. I really really like this. It's very cool. Yeah. And dduping is kind of hard with this. Like I tell the LLM to do the dduplication, but it's like, you know, a little so so with that.

  5. So the nice thing about having the user accept though is you can kind of be aggressive with suggestion. Yeah, definitely. And you can you can very easily imagine this as a part of the migration process or something too. You start you start from a mode a mode SQL statement or something and then basically you know well we'll pull it apart.

  6. You can deterministically pull it apart. You can also sort of you know semantically effectively pull it apart too. Yeah. And I have not done anything like CTE or you know kind of more complex nested stuff. So I think there's potential there but I haven't like even attempted to get into that yet. Nice. Cool.