2 ms·
You can query CSV directly without a DBMS backend using clickhouse-local. [1] It's often used to clean data exactly as this article describes. You can also load
by hodgesrm 5y ago
You can query CSV directly without a DBMS backend using clickhouse-local. [1] It's often used to clean data exactly as this article describes. You can also load CSV very easily into tables.
Superintendent.app seems to bring automatic schema definition to the table. We've discussed adding this to ClickHouse. Would be a great PR if anyone is interested.
[1] https://altinity.com/blog/2019/6/11/clickhouse-local-the-power-of-clickhouse-sql-in-a-single-command https://altinity.com/blog/2019/6/11/clickhouse-local-the-pow...
(This note brought to you by the ClickHouse evangelization task force.)
- btown 5y agoInterested, but writing and compiling a large new C++ codebase when I haven't written C++ in years isn't something I quite have time for at the moment :) For anyone else with more time to roll up their sleeves, https://github.com/ClickHouse/ClickHouse/blob/b0ddc4fb30f1a0405cf9a9842afdb11842823f50/programs/local/LocalServer.cpp#L347 https://github.com/ClickHouse/ClickHouse/blob/b0ddc4fb30f1a0... would be the place to split the header row, and perhaps use some heuristics on the first data row to identify datatypes!
- tanin 5y agoOP here. It is not that automatic. We simply import every column as TEXT, which seems to work well enough :)