ZENOTME commented on code in PR #176: URL: https://github.com/apache/iceberg-rust/pull/176#discussion_r1469148875
########## 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> { Review Comment: This interface looks weird because returning a type here can't let us determine the type in `ParquetWriter`. So I modify it to a specific type here temporarily. I think if we want to make it generic, maybe we need to make `OutputFile` a trait and let OutputFile bind an associate type like🤔 ``` trait OutputFile { type writer: FileWriter; ... } ``` cc @liurenjie1024 -- 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