Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

General Options

OptionDescription
-o, --output <OUTPUT>Output file or directory. Treated as directory for multiple inputs
-d, --delimiter <DELIM>Force delimiter (; , \t |). Overrides automatic detection
--force-headerTreat the first line as column headers, skipping header auto-detection
--no-headerTreat the first line as data (no header row), skipping auto-detection
--overwriteOverwrite an existing output file instead of adding a timestamp suffix
--null-values <LIST>Comma-separated extra tokens treated as NULL in text columns (e.g. NA,ND)
--timezone <TZ>Timezone for timestamps, e.g. UTC, +02:00 (default: +00:00)
--flattenFlatten nested JSON into dot-separated columns instead of Arrow Struct/List
--flatten-separator <SEP>Column-name separator for --flatten (default: .)
--flatten-max-level <N>Max nesting depth for --flatten; deeper values are serialized as JSON strings
--previewPreview tabular data for a JSON/JSONL file (flattened nested view) without converting
--to-csvReverse conversion: Parquet → CSV
--to-jsonlReverse conversion: Parquet → JSONL
--to-jsonReverse conversion: Parquet → JSON (array of objects)
--to-xlsxReverse conversion: Parquet → XLSX (Excel workbook)
--full-schema-inferenceAnalyze entire file for type inference (instead of first 10,000 rows)
--force-utf8Force all columns to LargeUtf8 (disables inference, preserves raw data)
--view-schemaDisplay logical and physical schema of a Parquet file
--sheet-concurrency <N>Number of Excel sheets processed in parallel (default: ncpu/2)
--diagnoseLog per-phase timing and RSS to stderr (also via CONVERT_TO_PARQUET_DIAG)
--manGenerate man page in roff format

Details

--output

  • With a single input file: output file path
  • With multiple files (glob): treated as a directory
  • If path ends with /: always treated as a directory

--delimiter

Accepted values: , ; \t | or any character. Useful for files without standard extensions.

--force-utf8

Useful for heterogeneous data where type inference would produce unexpected mixing. No semantic loss, but larger files.

--force-header

Forces the first line to be treated as column headers, bypassing the header auto-detection heuristic. Useful when the heuristic misclassifies a header row as data (or vice versa).

--full-schema-inference

By default, only the first 10,000 rows are analyzed for schema inference. This option analyzes the entire file. Slower, but more accurate for files where types vary beyond the first rows.

--no-header

Forces the first line to be treated as data, bypassing the header auto-detection heuristic. Mutually exclusive with --force-header.

--null-values

Extra tokens (comma-separated, case-insensitive) treated as NULL in text columns, on top of the always-null null sentinel, e.g. --null-values NA,ND,NR.

--timezone

Sets the timezone applied when parsing textual timestamps (e.g. UTC, +02:00). Defaults to +00:00.

--flatten, --flatten-separator, --flatten-max-level

By default, nested JSON is preserved as Arrow Struct/List columns (see Input Converters). --flatten instead flattens nested objects into dot-separated columns (e.g. address.city), using --flatten-separator as the joiner and --flatten-max-level to cap nesting depth (deeper values are serialized as JSON strings). Only affects JSON input.

--preview

Prints a tabular preview of a JSON/JSONL file (flattened view for nested data) to stdout without producing a Parquet file. Requires exactly one JSON input.

--overwrite

By default, an existing output file is preserved and a timestamp suffix is appended to the new one. This flag overwrites the existing file instead.

--diagnose

Logs per-phase timing and memory (RSS) to stderr for each conversion phase. Can also be enabled via the CONVERT_TO_PARQUET_DIAG environment variable.