Fokko commented on issue #345: URL: https://github.com/apache/iceberg-python/issues/345#issuecomment-1923541517
@jonashaag Sure thing! This is where we need to pass in the configuration: https://github.com/apache/iceberg-python/blob/a4856bc2eadf90ac85dec96d4502ca3517bb1bb5/pyiceberg/io/pyarrow.py#L1713-L1758 The `table.properties` contains the configuration option. Today we only support writing Parquet files, therefore we want to fetch the `write.parquet.compression-codec` property that `∈ {zstd, gzip, snappy}` which corresponds with the properties in Arrow. Next, we also need to get `write.parquet.compression-level` to set the level. I would just create a function to extract the relevant properties and then pass the into the writer. Let me know if this helps or if you have any other questions. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org