xanderbailey commented on code in PR #2822:
URL: https://github.com/apache/iceberg-rust/pull/2822#discussion_r3669573415
##########
crates/iceberg/src/puffin/metadata.rs:
##########
@@ -401,9 +391,27 @@ mod tests {
java_zstd_compressed_metric_input_file,
uncompressed_metric_file_metadata,
zstd_compressed_metric_file_metadata,
};
+ use crate::{ErrorKind, Result};
const INVALID_MAGIC_VALUE: [u8; 4] = [80, 70, 65, 0];
+ /// Reads file metadata from an [`InputFile`], resolving its reader and
length.
+ async fn read_file_metadata(input_file: &InputFile) ->
Result<FileMetadata> {
+ let file_read = input_file.reader().await?;
+ let file_length = input_file.metadata().await?.size;
+ FileMetadata::read(file_read.as_ref(), file_length).await
+ }
+
+ /// Reads file metadata with a prefetch hint from an [`InputFile`].
+ async fn read_file_metadata_with_prefetch(
Review Comment:
[8c4e603](https://github.com/apache/iceberg-rust/pull/2822/commits/8c4e6034db5bacc4224e0bc4fc33bd615200ac52)
--
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]