Xuanwo commented on code in PR #364: URL: https://github.com/apache/iceberg-rust/pull/364#discussion_r1596405143
########## crates/iceberg/src/io.rs: ########## @@ -206,6 +205,35 @@ impl FileIO { } } +/// The struct the represents the metadata of a file. +/// +/// TODO: we can add last modified time, content type, etc. in the future. +pub struct FileMetadata { + /// The size of the file. + pub size: u64, +} + +/// Trait for reading file. +/// +/// # TODO +/// +/// It's possible for us to remove the async_trait, but we need to figure +/// out how to handle the object safety. +#[async_trait::async_trait] +pub trait FileRead: Send + Unpin + 'static { Review Comment: I'm open to either name. This PR aims to minimize changes to our existing traits, so I prefer moving this discussion to a separate issue. What do you think? -- 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