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
Respect Spark compression settings in native Parquet writer #2814
#2812 adds basic support for native Parquet writes, but does not fully support compression codec configs from Spark. Also, lz4 compression level is not configurable.
Describe the potential solution
Respect Spark configuration options.
Also add a Comet conf for specifying lz4 compression level.
The native Parquet writer now honors Spark's codec configuration. CometDataWritingCommand (spark/src/main/scala/org/apache/comet/serde/operator/CometDataWritingCommand.scala) resolves the codec with Spark's own precedence, the compression write option, then parquet.compression, then spark.sql.parquet.compression.codec, and accepts none/uncompressed, snappy, lz4, zstd and gzip (gzip landed last, in #4930, c65a5ee); native/core/src/execution/operators/parquet_writer.rs maps each to the parquet-rs codec and carries the compression level for zstd. An lz4 level is not something parquet-rs exposes (Compression::LZ4 takes no level), so that part of the ask has nothing to configure. Suggest closing.
Activity
dwsmith1983 commentedon Sep 11, 2026
The native Parquet writer now honors Spark's codec configuration.
CometDataWritingCommand(spark/src/main/scala/org/apache/comet/serde/operator/CometDataWritingCommand.scala) resolves the codec with Spark's own precedence, thecompressionwrite option, thenparquet.compression, thenspark.sql.parquet.compression.codec, and accepts none/uncompressed, snappy, lz4, zstd and gzip (gzip landed last, in #4930, c65a5ee); native/core/src/execution/operators/parquet_writer.rs maps each to the parquet-rs codec and carries the compression level for zstd. An lz4 level is not something parquet-rs exposes (Compression::LZ4takes no level), so that part of the ask has nothing to configure. Suggest closing.