
Dataset builder UX for workbooks
Continuing the work to improve two-step analytics workflows focused on create dataset then analyze dataset. The new dataset workflow will allow special workbook tabs that build datasets for…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Um, okay. So, I have a little update on our work on our dataset project . Um, here's the screen we're all familiar with. Um, select tables, a list of all the tables in your database. And here I can create a dataset/topic. This will be a dataset, um, based on any of them. And what this takes you to is a kind of interface for the future dataset editor .
We filter out all your foreign keys. Um, we'll give you the option to add merging later, but this is kind of a starting point for a new tab experience, um, that Luke will demonstrate after me. But um, somewhat unrelated, but another thing I've been working on in the customer satisfaction direction is um where, wait, I need to make my little list, and then where, how do I edit it?
speak. Um, anyway, I implemented our best field selection tool in them. Um, so I have a whole to-do list to update. I just saw the one in Jamie's demo that I have to replace, but if you think of any others , let me know. Good. I'll go after this devil. So, sorry. Sorry. Um, okay. So, one of the things we wanted to do was make it easier to deploy new dataset features to any instance without having to enable them for everyone.
And so I created a new thing. It is only available to superusers, and consists in the fact that individual documents can connect to specific function flags. Um , we've done this a few times randomly, like for metadata migration. Now let's just make it explicit. So basically, I can say when you enable the dataset feature, um, you can say it doesn't turn on for every document.
It is only enabled for documents for which you have enabled it. So I turn it on and come back here. You'll see that I now have a tables option here . Um, and that's kind of a change. This is a new thing. Adding new document features is very easy, and they are layered on top of each other, such as the organization must have this feature.
Um, but the idea is that we can do a faster incremental rollout of features , um, for customers if we want to. Um, and this uses that flow that you just saw Alyssa show. So I did it on this table, um, in this weird random fictional ChatGPT table. So I just had three relevant things. Um, if I come back here , I think it's worth knowing that we also offer an " in use" feature.
So if you want to see other datasets or themes used, they will appear there. This is an experimental feature, so it is only available with the appropriate checkbox. Last but not least, there's another feature we're currently working on— enabling this little editor tab type. So when you open the dataset tab, you should see a new interface for editing datasets.
This is not real yet. Um, but we have a way to very easily add a new tab type behind a check mark. This is the same builder we use for CSV editing and other more complex tab types we are trying to implement. So yes. And just to clarify about datasets: the idea is a tab that behaves a little differently, without visualization, its focus is on creating a table and further use.
Yes. So the next step is to have a save button, which I didn't do in this completely fake mockup, but you'll be opening the dataset. You will make changes, and after saving they will actually be written back into the theme; You can think of a dataset as a kind of query that maps back to a topic. So when you edit, we map the topic back into a big broad query.
If you deselect a field from a view, it is removed from the topic, the topic dataset—the names are a little vague here, but that's essentially what happens. The cool thing is that we want to implement the same workflows: if you want to open a saved query or view, you can instantly open it again, there will be a real save process, and you can save it again.
And for datasets, we're also planning functionality where you might want to start with a SQL query. You write SQL and then you say, "Hey, I want to make this a dataset." So, you click "save dataset". This will likely save the SQL as a saved view. And then it will create a dataset on top of that, where it will be the base table of the topic dataset.
And after that, you can also add more joins to your model schema if you want. Or you can leave everything as is. So it's roughly likely that when you make changes, the queries in that workbook that are built on the dataset will actually absorb those changes. It will be so. The caveat is that you have to love CSV.
You open a CSV file with quotes, and when they are not used, you save them. The same is probably true with a dataset, because trying to synchronize these two things when they're half-done is painful and can be very annoying; you switch tabs and the workbook breaks. So you'll have to put it off . Jared, Ellis, and I discussed that tabs don't seem like the right approach in this world because they're different.
We have some thoughts, hopefully next week I'll have early demos of how we're thinking about this, specifically these source tabs like dataset, CSV, and saved queries, which are a little different from how we think about query tabs. But queries and spreadsheets seem to coexist in tabs, whereas these are sources, and they are truly different. It allows you to do these general explanations of how everything works, and that's it .
But to go much further, theoretically, once we create these datasets and have a place to load them, we could even load this dataset into a browser . And everything I do in a workbook can theoretically be in memory. I mean, the cool thing is that datasets are just objects. So, theoretically it's a rectangle, yes, and we could just throw all of that into DuckDB and say, " only query this rectangle ."
Of course, it depends on how much you've packed into your rectangle, but yeah, if we encourage people to build a document based on just a few datasets, you know, or one ideally, but often more than one, then those are cubes, and we send those cubes to them, and that's it. Even if we don't throw it into the browser, even if we just put it in a very good cache level.
We constantly get the cache level for the entire document. So this is roughly the way they build a rectangle and then requery this rectangle that we know . And what we want to get down to is that when I take a CSV, it's obviously a very simple rectangle, but the SQL query, once it's converted to a stored view, it's pretty easy to treat as a rectangle if it's of a reasonable size.
So, yes, the point is that essentially, a dataset and a topic are the same thing. We simply sincerely believe that “ dataset” is a better name than “topic” in the long run. When you ask ChatGPT what a topic is, it says it's a curated set of data, and you're like: well, okay, let it be . So yeah, that's the story.
And the most interesting thing is, since datasets are simply topics , they can be promoted or demotioned in the hierarchy. We need to think about gestures, for example, when I have a topic or it's already in the shared model . How do I drag it into a workbook, work with it, and then maybe put it back, and how would that process feel?
This is not something we need to solve immediately, but later we want to make it very simple, although " expand" is not quite the right word. We don't need to " extend", we want to be able to take the local version, use it, and if we want, send it back, or just always use our copy. So yes.
What? Luke, turn that around for a moment. I just want to point something out, because you, Colin, asked about it the other day too. A nice button to join or add a table, part of this process is to make this flow much more enjoyable. So, yes, this is the future. And I think we should focus on making the design of connections an integral part of the experience.
We were discussing that maybe if you look at the query tabs today, oh, don't be a bore. Today's query tabs have both results and graphs. We could add data joins and perhaps an entity relationship diagram (ERD) to visualize the join structure. And you could draw tables and things like that, be more data-oriented than rectangles, and not just query, but see the structure of it.
So, it remains to be seen. Class. Oh, my turn. I managed.