Skip to content

Conversation

mbostock
Copy link
Member

Rather than hard-coding CSV = comma and TSV = tab (despite the name), use DuckDB’s magical automatic delimiter inference by default. You can still specify a delimiter explicitly if you use the delimiter option.

Ref. https://observablehq.com/d/f11bdd2a9af411c5

@mbostock mbostock requested a review from Fil November 21, 2022 17:54
Copy link
Contributor

@Fil Fil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be particularly useful for French users of Excel, since by default Excel localizes csv with a semicolon delimiter (because it also uses commas instead of dots for decimal numbers…). Which explains why we have awful lots of semicolons-separated-values files.

@mbostock mbostock merged commit 8deff3c into main Nov 21, 2022
@mbostock mbostock deleted the mbostock/fix-duckdb-auto-delimiter branch November 21, 2022 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants