ZENOTME commented on code in PR #176: URL: https://github.com/apache/iceberg-rust/pull/176#discussion_r1470712134
########## crates/iceberg/src/io.rs: ########## @@ -278,7 +288,7 @@ impl OutputFile { } /// Creates output file for writing. - pub async fn writer(&self) -> Result<impl FileWrite> { + pub async fn writer(&self) -> Result<Writer> { Ok(self.op.writer(&self.path[self.relative_path_pos..]).await?) Review Comment: I find that the `AsyncArrowWriter` already provides the [write with a buffer](https://docs.rs/parquet/latest/parquet/arrow/async_writer/struct.AsyncArrowWriter.html#method.write ). In this case, maybe we can use this buffer. And we also provide the interface `pub async fn writer(&self, buffer_size: usize) -> Result<Box<dyn FileWrite>>` in OutFile, for the file format which doesn't provide the cache, we can create a inner writer with buffer. -- 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