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


##########
crates/iceberg/src/writer/file_writer/parquet_writer.rs:
##########
@@ -110,6 +125,62 @@ 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,

Review Comment:
   I don’t think this is out of spec however, I would claim if a user wants to 
compress with a format supported by the parquet spec, this should be allowed? 



-- 
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