Files that open as they load
CSV and Parquet files open in tabs of their own, from the command line, the box at the top of the window, or dropped on it. Rows appear while the rest is read, and a query sees each file as far as it has loaded.
- Click a column title to sort; drag a column's edge to resize it
- A Parquet file whose rows take more than 1 GB uncompressed is not loaded (any Parquet file with
--paged): it opens at once and the grid reads only the rows it shows, from anywhere in the file; a click on a title sorts it, the first sort by a column making a sorted copy of the file in the temporary folder (the status bar counts the seconds), and therowtitle gives back the file's order; SQL reads the file itself, so filter and sum it there, sorts spilling to disk past 2 GB - Select rows with the mouse or keyboard and copy them as tab-separated text, for a spreadsheet
- Each file is a table named after it, in lower case with anything but letters and digits made
_, and its tab starts with that name:trips_2024 · Trips 2024.parquet - A word SQL reserves gets a
_(select.csvisselect_), and a name already taken a number (trips_2) - A
rowcolumn numbers each file's rows (row_if it has arowcolumn; SQL does not see it for a file read a page at a time)
-- trips.parquet and zones.csv, by their table names
SELECT zones.borough, count(*) AS trips, avg(trips.fare) AS fare
FROM trips JOIN zones ON trips.zone = zones.id
GROUP BY 1
ORDER BY 2 DESC