mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-17 16:38:54 +00:00
By default, Miller treats "true"/"false" and IEEE special floats like "Inf", "Infinity", and "NaN" in data files as strings. This adds two opt-in flags, following the existing -S/-A/-O inference-flag family: * --infer-booleans: treat "true" and "false" (exactly those spellings, matching the DSL's and JSON's boolean literals) as booleans. * --infer-special-floats: treat "Inf", "Infinity", and "NaN" -- case-insensitively, with optional leading +/- on the first two -- as floats. Unlike -S/-A/-O, these don't replace the package-level inferrer; they augment it, so they compose with -A and -O. They intentionally have no effect with -S/--infer-none, which disables type inference entirely. Default behavior is unchanged. Includes unit tests, regression-test cases under test/cases/io-infer-flags/, and documentation updates. Addresses #965. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| auxents | ||
| bifs | ||
| cli | ||
| climain | ||
| colorizer | ||
| dkvpx | ||
| dsl | ||
| entrypoint | ||
| go-csv | ||
| input | ||
| lib | ||
| mlrval | ||
| output | ||
| parsing | ||
| pbnjay-strptime | ||
| platform | ||
| runtime | ||
| scan | ||
| stream | ||
| terminals | ||
| transformers | ||
| types | ||
| version | ||
| README.md | ||
Please see ../../README-dev.md for an overview; please see each subdirectory for details about it.