Skip to content

Column types: is there a sane way to type a CSV? #73

Description

@adriangalilea

Discussion issue. CSV has no type system, and the prior art is bleak: CSVW (W3C sidecar JSON, effectively dead), .csvt (GDAL sidecar, niche), CSV Schema Language (validation-only, dead). Frontmatter is impossible — CSV has no comment spec, and metadata on line 1 shifts every row index and breaks every consumer.

Least-destructive option found so far: a vim-style modeline as the LAST line (# sheets: types=string,int,float header=true) — one garbage row at EOF that other tools ignore or render harmlessly.

Or maybe the honest answer is that CSV can't be fixed and a lightweight typed plaintext tabular format deserves to exist. Filing to collect opinions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions