
CSV upload UX + column types
We demo the new spreadsheet-centric UX for CSV upload - trivial to edit and refine the upload, now including type controls to override our type guessing.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I think I'm next also doing CSV stuff um so starting with a blank table um added this like details paint over here it's still kind of early days but it's coming um and so for example if I pull over some totally fake quota data um it has commas and stuff in it and so we didn't uh like if I save this quotas um looks like we identified both of these as strings um and I can actually check that by hitting query CSV and it'll pull up a little preview and if I go over here I can see that the type is string on quota and like I don't get the full list of Aggregates that I might want um so if I go back to
edit the table um I can then flip quota over to an INT and save again um there's uh you no real indicator here that it's changed but if I go back to my preview um I can see that the type over here in the field picker has changed and that I get the full list of Aggregates so a different type Richard uh Richard quick question uh how does it work with like dates something I've seen is if somebody has a CSV with like a date that looks like a date but it's in just a different format that we don't uh interpret well do we give opt options here to um well do you do you want to find out live yeah all right cool um
what do you have a do you have an example of a uh month day year month month day oh that's really ambiguous too let's do a do you want to try a non-ambiguous one no the non-ambiguous one already works oh okay so uh like this that should be sufficient right sure um the one I see sometimes too is like when the day it shows that month or 12 yeah is this uh so this is year month or actually it's really hard to tell what this is oh It reversed it yeah that's it's going Feb yep um yeah so I mean yeah I don't I mean I don't think there's a way cuz we're just going to be changing the type under the hood um I
don't think there'd be a way right with this UI to do that um yeah you know what what you might want to do though is if you were doing it I guess we can't really there's there's no there's no type that says says that we'd actually have to like choose the formatting up front yeah I think we want to like inform it as to this is the date and here's the format it's in so you can say this is um day month year or month day yeah yeah or whatever it is so that it so sort of an addon to the date column I think that makes sense um and I I I think it may be possible because I believe you can change the
priority of the um of the the way we check against the CSV so I'll look into that nice par look how are we doing the type inference what what what is what's going on there like Duck DB uh CSV upload has a sniffer in it um Stephen could probably tell you more but oh yeah we're using the basics fromb on its own there's a lot of stuff we've talked about about to inform that of and a lot of different things we could play with um to sort of make this thing smarter in the future the most simple thing is it's actually very very good at figuring a lot of stuff out and sort of surprisingly good so the defaults are pretty awesome but yeah we
can we can Mo we see fit yeah when I looked at it it seems fairly configurable like you can pass in it's like it just takes arrays of like priorities and so if we floated month day year to the top of the priority or allowed you to sort of set that manually then I think we could make it a lot smarter