General Options
| Option | Description |
|---|---|
-o, --output <OUTPUT> | Output file or directory. Treated as directory for multiple inputs |
-d, --delimiter <DELIM> | Force delimiter (; , \t |). Overrides automatic detection |
--force-header | Treat the first line as column headers, skipping header auto-detection |
--no-header | Treat the first line as data (no header row), skipping auto-detection |
--overwrite | Overwrite 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) |
--flatten | Flatten 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 |
--preview | Preview tabular data for a JSON/JSONL file (flattened nested view) without converting |
--to-csv | Reverse conversion: Parquet → CSV |
--to-jsonl | Reverse conversion: Parquet → JSONL |
--to-json | Reverse conversion: Parquet → JSON (array of objects) |
--to-xlsx | Reverse conversion: Parquet → XLSX (Excel workbook) |
--full-schema-inference | Analyze entire file for type inference (instead of first 10,000 rows) |
--force-utf8 | Force all columns to LargeUtf8 (disables inference, preserves raw data) |
--view-schema | Display logical and physical schema of a Parquet file |
--sheet-concurrency <N> | Number of Excel sheets processed in parallel (default: ncpu/2) |
--diagnose | Log per-phase timing and RSS to stderr (also via CONVERT_TO_PARQUET_DIAG) |
--man | Generate 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.