You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ParquetWriterOptions compression_level fails with the default codec #1839
DataFusion error: Invalid or Unsupported Configuration: Could not parse compression string. Got codec: zstd and unknown level from zstd(3)(6)
df.write_parquet(path, options) fails in the same way. Explicit codec strings containing a level also fail, for example ParquetWriterOptions(compression="brotli(7)", compression_level=4) produces brotli(7)(4). A bare codec such as compression="gzip" works with a separate level.
Reproduced against current main 878e5d3b8d373bca19671af43e49dfb1890f8da2 Python sources on Windows/Python 3.11.7 with the released 55.0.0 native wheel (engine 55.2.0).
Expected behavior
An explicit compression_level should replace an embedded level, including the default zstd(3), rather than append a second parenthesized level. Without an explicit override, the original compression string should be preserved.
I am preparing a focused fix with actual Parquet writes through both public entry points, codec metadata/readback assertions, and rejection tests for out-of-range levels.
Activity