mbutrovich commented on code in PR #1802:
URL: https://github.com/apache/iceberg-rust/pull/1802#discussion_r2475578741
##########
crates/iceberg/src/spec/table_metadata.rs:
##########
@@ -413,9 +415,20 @@ impl TableMetadata {
file_io: &FileIO,
metadata_location: impl AsRef<str>,
) -> Result<TableMetadata> {
- let input_file = file_io.new_input(metadata_location)?;
+ let input_file = file_io.new_input(metadata_location.as_ref())?;
let metadata_content = input_file.read().await?;
- let metadata =
serde_json::from_slice::<TableMetadata>(&metadata_content)?;
+
+ let metadata = if
metadata_location.as_ref().ends_with(".gz.metadata.json") {
Review Comment:
Do we want to optionally support the Java Iceberg alternative?
> The Java reference implementation can additionally read GZIP compressed
files with the suffix metadata.json.gz.
--
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]