Skip to content

fix(utils): sniff only plausible delimiters, treat the rest as single-column - #918

Open
yunaremaia wants to merge 1 commit into
simonw:mainfrom
yunaremaia:fix/single-column-sniff
Open

yunaremaia wants to merge 1 commit into
simonw:mainfrom
yunaremaia:fix/single-column-sniff

Conversation

@yunaremaia

@yunaremaia yunaremaia commented Oct 27, 2026 •

Copy link
Copy Markdown

Fixes #907. csv.Sniffer() without a delimiters list invents delimiters out of ordinary letters in single-column files (csv.Error or split columns). Now sniff only for , ; tab |, and fall back to a single column when none is found. insert --sniff left unchanged (explicit detection request). Regression tests included.


📚 Documentation preview 📚: https://sqlite-utils--918.org.readthedocs.build/en/918/

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.

rows_from_file() splits a single-column CSV file on a letter, or raises csv.Error

1 participant