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

Changelog

[0.4.1] - 2026-07-24

✨ New Features

GUI Application

  • Desktop GUI (cargo run --bin convert_to_parquet_gui): egui/eframe app with drag-and-drop, schema/column editing, multi-format output selection (Parquet/CSV/JSONL/JSON/XLSX), Parquet column renaming, and memory-bounded concurrent batch conversion. See GUI Application.

CLI Options

  • --no-header, --overwrite, --diagnose
  • --null-values <LIST>: extra NULL sentinels
  • --timezone <TZ>: timestamp timezone override
  • --flatten, --flatten-separator, --flatten-max-level: flatten nested JSON to dot-notation columns instead of Arrow Struct/List
  • --preview: headless tabular preview of a JSON/JSONL file

πŸ”§ Technical Improvements

  • Memory-adaptive pipeline (src/memory.rs): block size (10k-100k rows) and worker thread count now scale with available RAM instead of fixed constants, shared by the CSV pipeline, the native nested-JSON pipeline, and the GUI’s job concurrency
  • Native nested-JSON pipeline (src/conversion/json_pipeline.rs): parallel block engine backing json_arrow::convert_json_to_parquet, mirroring the CSV pipeline’s ordering/threading model
  • Diagnostics (src/diag.rs, --diagnose / CONVERT_TO_PARQUET_DIAG): per-phase timing and memory notes on stderr
  • Parquet column renaming (src/parquet_rewrite.rs): rewrite column names in an existing Parquet file
  • src/csv_generator.rs replaced by src/data_generator.rs (CSV, TSV, JSON, JSONL fixtures)

πŸ§ͺ Tests

  • tests/parquet_rewrite_tests.rs, tests/preview_tests.rs, tests/schema_override_tests.rs
  • tests/nested_json_tests.rs extended with --flatten coverage (separator, max-level, mixed depth)

[0.4.0] - 2026-06-19

✨ New Features

Interactive Viewer (TUI)

  • Parquet Interactive Mode: opening a .parquet file in a terminal launches a full-screen viewer (ratatui)
    • Data preview, navigation, and on-the-fly export to CSV / JSONL / JSON / XLSX
    • Automatic fallback to schema + statistics display when output is redirected

New Export Formats (Parquet β†’ …)

  • Parquet β†’ JSON: export as a JSON array (src/to_json.rs)
  • Parquet β†’ XLSX: export as an Excel workbook (src/to_xlsx.rs)
  • Unified export module src/export.rs

Nested JSON Objects

  • Nested JSON: support for nested objects/arrays via Arrow (src/json_arrow.rs)

πŸ”§ Technical Improvements

  • Exposed a reusable library (src/lib.rs) consumed by integration tests
  • rust_xlsxwriter promoted to a runtime dependency (XLSX export), added ratatui
  • Regenerated man page (convert_to_parquet.1): up-to-date version and synopsis

πŸ§ͺ Tests

  • tests/export_formats_tests.rs: CSV/JSONL/JSON/XLSX export
  • tests/nested_json_tests.rs: nested JSON objects
  • tests/noise_robustness_tests.rs: robustness against noisy data

[0.3.0] - 2026-06-14

✨ New Features

Support for New Input Formats

  • JSON / JSONL: automatic conversion of .json, .jsonl, .ndjson files to Parquet
    • Support for arrays of objects, single object, or one object per line
    • Header extraction via two-pass scan for JSONL
  • Excel Files: support for .xlsx, .xlsm, .xlsb, .xls, .ods
    • Cell-by-cell streaming for xlsx/xlsb (low memory footprint)
    • Parallel sheet processing (configurable with --sheet-concurrency)
    • One sheet = one Parquet file: <filename>__<sheetname>.parquet
  • Compressed Files: support for .gz and .zst input (automatic decompression to temporary file)

Reverse Conversion (Parquet β†’ Other Formats)

  • Parquet β†’ CSV: new --to-csv option
  • Parquet β†’ JSONL: new --to-jsonl option
    • One JSON object per line, null fields omitted
    • Using Arrow formatters for type fidelity

Enhanced CLI Interface

  • Glob Expansion: convert_to_parquet *.csv processes all matching files
  • Forced Delimiter: --delimiter (supports , ; \t |)
  • Flexible Output: -o can be a file or folder (automatic detection)
  • Parquet Interactive Mode: if interactive terminal, displays schema + statistics then offers CSV/JSONL export
  • Man Page Generation: --man unchanged

Parquet File Inspection

  • New --view-schema command (already existing, but improved)
  • Display column statistics: compressed/decompressed sizes, null count

πŸ”§ Technical Improvements

Temporal Precision

  • Timestamp: preservation of sub-millisecond precision (microseconds, nanoseconds)
  • Direct conversion to target unit without loss (Second, Millisecond, Microsecond, Nanosecond)
  • Smarter unit detection (textual or numeric, with plausibility window)

CSV Reading Reliability

  • Multi-line Field Handling: quotes are correctly interpreted
  • Blocks sent with their byte position (reliable progress bar)
  • Block reordering in Parquet writing (even in parallel)

Metrics and Progress

  • Progress bar based on MB/s (replaces β€œrows/s”)
  • Ticker thread cleanup (prevents zombie processes)
  • Conversion metrics: valid values, explicit nulls, conversion errors, error samples

Schema Inference

  • Confidence threshold for timestamps: 80% (configurable)
  • Improved type detection (bool, date, timestamp, int, uint, float)
  • Sampling limited to 10,000 rows (except --full-schema-inference)

πŸ“ Structural Changes

New Modules

  • src/json.rs: JSON β†’ temporary CSV conversion
  • src/xlsx.rs: Excel spreadsheet reading
  • src/inspect.rs: Parquet statistics
  • src/to_csv.rs: Parquet β†’ CSV
  • src/to_jsonl.rs: Parquet β†’ JSONL

Refactored Modules

  • src/analysis/: cleaner splitting, generic builders
  • src/conversion/: parallel pipeline, MB/s ticker, block handling with position
  • src/schema.rs: types renamed to English, inference logic clarified
  • src/utils.rs: compression functions, advanced temporal parsing

πŸ—‘οΈ Deletions

  • Empty module automatic_rejection_tests.rs
  • Unused variables in ErrorCounters
  • Dependency on CSV reconstruction in analyze_block()

πŸ§ͺ Tests

  • New integration tests for JSON, XLSX and multi-line CSV fields
  • Timestamp precision tests (microseconds, nanoseconds)
  • Verification of strict row ordering in parallel pipeline

🌐 Internationalization

  • Codebase fully in English: variable names, error messages, logs, comments, and end-user messages