Kurtiscwright commented on code in PR #2887:
URL: https://github.com/apache/iceberg-rust/pull/2887#discussion_r3683792679


##########
crates/iceberg/src/writer/file_writer/parquet_writer.rs:
##########
@@ -110,6 +115,63 @@ impl ParquetWriterBuilder {
     }
 }
 
+fn parquet_compression(codec: &str, level: Option<i32>) -> Result<Compression> 
{
+    let compression = match codec.to_lowercase().as_str() {
+        "uncompressed" | "none" => Compression::UNCOMPRESSED,
+        "snappy" => Compression::SNAPPY,
+        "lzo" => Compression::LZO,
+        "lz4" => Compression::LZ4,
+        "lz4_raw" => Compression::LZ4_RAW,
+        "gzip" => {
+            let level = match level {

Review Comment:
   Can we please have these compression levels default to the same values as 
Java if a user doesn't pass us a compression level. Please reference this 
comment for examples - 
https://github.com/apache/iceberg-rust/pull/2887/changes#r3646169572



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to