Skip to content

use DuckDB’s auto delimiter by default #325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2022

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