Datasets and query views

Luke Bowerman · Friday Demos · April 4, 2025 · 9:46

Continuing down the path of making view building in the workbook clearer and faster. Now query views (SQL or UI) get a dedicated build and edit experience.

Transcript

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

  1. Okay. Uh, this is not going to be quick and I'm hoping I can follow follow my own thread and it kind of got complicated, but uh, data sets is more real today than it was last week. Um, so, um, let's see here. So, if I go ahead and open up this, edit this. Um, folks have seen this before, but we basically have this new topic picker.

  2. Um, if you have a feature flag on, you also get a table picker. Um, it also shows in use. So, that's why I stuck this in here. I can see, oh, this other topic documents is in use. But more importantly, I can turn on tables here and poke through my schema. Um, in my case, I'm going to use adoptions here.

  3. Um, this is just like a fake animal rescue schema I had chat GPT make up for me. But click this and it creates me a really quick uh table uh or a view of that table. And we automatically pick in um all of the or dimensions on that base table. We also pull in joins here. So I'm going to pull in a few things.

  4. So we have a vaguely interesting u view of this. Um, so now I have this rectangle when I think it's useful. Obviously not super exciting to have one record, but my sample data was bad. Um, and now I can actually go in here and save it as a topic. So really quick caveat, we temporarily have gone back to using the name topic because we we're getting ourselves confused about data set topic.

  5. Um, we're going to do basically a one-time kill all but word topic across the product pretty soon and rename the data set and not have both around. So, for now, we're sticking with topic. Erin, you and I get the fun of talking about how do we do this massive change all at once, but tehe. Um, so I save this as a data set, which you do.

  6. It now opens up this or sorry, as a topic. Um, I have a new topic editing tab. Um, shows me I'm in a topic. Um, I can see it's named this query. Fun name. I'm actually going to go back and save this. messed up my demo a little bit. Um, oops. Great thing is we're in draft, so I can do this again really quick.

  7. Back to tables, adoptions. That's fine. I'm going to actually rename this to adoptions so it's pretty easier to understand. And then I'm going to do again save query as topic. And now I have a more logically named topic. Um, this is actually showing me the the this is the label of the topic and this would be the name of the topic.

  8. Um, so they're fairly smart. Um, this will actually in a very short period of time use the view name of the base table. So it'll be like adoptions, but if it was it actually will be a longer more elaborate thing because it's in a schema um due to a minor bug I have not yet fixed. You can't it sort of messes it up right now.

  9. Um, one nice thing is go down here and you can re label your topic. You can add a description. So I can say all about our uh adoptions. I can also if I click advance change the topic name. This is not a good idea. Um this will basically break anybody using that topic. But it's a brand new topic.

  10. I didn't like the autogenerated name it came up with. I could pick a different name. Um I'm not going to do that for reasons. Um and this should have been that again a schema reference name, but we're not quite there yet. So, if I save this, um, that works. Uh, and this original tab that this topic came from over here has actually been moved on top of that topic.

  11. And we can see it's sitting right there working. Um, so basically it goes back, updates the original query onto that topic. Um, so there's some UI that is, let's say, uh, optimistic here. Um, we can right now do rename and add description and re label. Um, in the very near future, you actually be able to pick which joins are included in this topic.

  12. Um, right now it just includes everything I can find, which is probably not what you want. Um, you can also show and hide fields. And then, um, uh, we're very close to having filter support so that when you go ahead and save, add filters, you can choose what kind of filter it is. By default, when you add a filter, it's this.

  13. I'm going to forget the right name Alissa, but no, but basically it's a hidden filter, so it just sort of hides itself away and you just always applied. We'll have an option to make that a uh a visible filter. So you can like configure it the way usual topics work. So that's one. Um the other thing we have going on um if I back out of here again um is if I edit ah this edit go through tables this guy just options again I'm going to pick a few other columns um is we've replaced uh the same the query view sort of flow with a similar flow so I actually can go and I can update it.

  14. I I just saved this as a view. Um, again, I can rename it. So, I can be like, "Nope, I want my query view to be called uh adoptions." Um, now rather than having to go up here and find that funky save query as view, you actually just can say save and it will just save. Um, so you have a nice load for that.

  15. Additionally, if I go find that view, which has some really dumb name now, um because I saved it. Oops, bad name. Uh adoptions, this guy. Um I can actually go in here, edit, it'll jump me back to that tab. If I close that tab and do that again, it's actually smart enough to reopen tab automatically. So again, I have sort of end to end query view editing that actually has nice UI and tells do it.

  16. Um, we'll also support um in the very short near future actually like changing the name or label description. We just need to push that in. Um, so we kind of get all those features for query views. Um, last but not least, uh, where is it? This will work. Um, there was an option called reququery result. Um, we're going to rebrand it as query view plus topic because that's actually what it is.

  17. This will probably actually get nested under query view and just have that option to say add a topic on top of me. Um, that's all this really does. It's super powerful for somebody who wants it, but the naming was pretty confusing to folks. Um, and then this is actually something Jamie built a while back. Uh, it's just adding a topic sample query.

  18. Um, right now it's just for the AI query helper. Um, and this will only show up in inside a topic. So you notice I'm in a documents. So this is showing up. If I drop out of document, out of the topic, that option is now gone because there's no topic to push it into. So just kind of cleaning up the same query flows.

  19. Um, the query view piece should come very shortly, like early next week. Um the topics editing stuff uh we're still testing out internally but we'll have it internal instances pretty soon. Um and then source table's been there just a tighter view basically push this back into the warehouse a little more branded. So yeah. Um Lou can you show not to put you on the spot but the same query view flow but starting from SQL.

  20. Uh yeah. Uh let's see how this goes. Um I I know we uh we have to finish putting some like roundabouts on that, but uh it worked yesterday. Uh select star from Oh boy. Uh animal rescue options. There we go. Let's try that. Ignore this nightmare. That's just my local. Thank you. Um, yeah. So, I did that.

  21. I should be able to do query view. Boom. Done. Um, so now it's a query view. Uh, it's got a really dumb name again because I forgot to name it. And I can change it name. But if I save this, it's already saved. And go to another tab. And I'm just gonna go here. It's not in a topic.

  22. Uh, there it is. Boom. So, it does work very nicely. um say um so flow flow is now way easier to like write drop in SQL query save it as a table go use it but you can go back to now this is like an editor tab effectively these are editor tabs so you can go back change the the core data center table underneath and that will propagate through to anywhere that's using it.

  23. Yeah. Yeah. And I guess the we have some work to do on the renaming stuff. We probably want to pull some of these buttons further forward out of that model menu or up so they're prompting you more. The other thing to know is that uh I am not offered to put these on the dashboard because it's a bad idea.

  24. So they get blocked out of the dashboard. We're going to rejigger this manual a little bit because it's getting a little bit overwhelming. Um but yeah, so these are these query views as well as data set per topic editor views don't get into dashboards and create strangeness. So yeah, that's it.