Files
Dixit Sabharwal a578c66091 Make from csv/from tsv keep every field a string; add --infer (#19651)
## Description

Makes type inference in `from csv` and `from tsv` opt-in, as discussed
in #13514. Every field is now a string; `--infer` applies the previous
int-then-float heuristic. `--no-infer` is kept as a deprecated no-op
(first-use parse warning, same mechanism as `du --min-size`) so existing
scripts keep working; passing both flags is an error. `open file.csv`
and `http get` on a `text/csv` response run `from csv`, so they keep
strings too; the help points at `--raw | from csv --infer` for numbers.

Tests that relied on inferred numbers pass `--infer` (or `into int`);
new tests pin the default, `--infer`, the deprecation and the conflict.
The std-rfc `aggregate` examples read their CSV with `--infer`.

## User-facing changes (Release notes)

- **Breaking:** `from csv` and `from tsv` no longer turn numeric-looking
fields into ints and floats; every field is a string, so values like
`007`, `1E5` or `NaN` stay as written. Pass `--infer` for the old
behaviour, or convert columns with `into int` / `into float` / `detect
type`. `open file.csv`, `open file.tsv`, and `http get` on a `text/csv`
response or on a `text/plain` response from a `.csv` or `.tsv` URL
behave the same way; to use `--infer` on them, read the data with
`--raw` first: `open --raw data.csv | from csv --infer`.
- `from csv --no-infer` / `from tsv --no-infer` are deprecated: they are
now the default and warn on first use.

## Additional notes

closes #13514
2026-11-25 05:24:04 -06:00
..