CTTY opened a new issue, #1554:
URL: https://github.com/apache/iceberg-rust/issues/1554

   ### Apache Iceberg Rust version
   
   None
   
   ### Describe the bug
   
   The existing implementation of `ParquetWriter::current_written_size` 
([link](https://github.com/apache/iceberg-rust/blob/d5e83489830eaf88150626cf50158c187dd4faec/crates/iceberg/src/writer/file_writer/parquet_writer.rs#L614))
 won't be accurate because it does not take its inner writer's buffer into 
account, and its `self.written_size` will only be accurate when closing the 
parquet writer. A more detailed analysis can be found 
[here](https://github.com/apache/iceberg-rust/pull/1547#discussion_r2232078220)
   
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   We should use `inner.bytes_written + inner.in_progress_size` to get an 
estimate size for the `current_written_size`
   
   ### Willingness to contribute
   
   I can contribute a fix for this bug independently


-- 
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]

Reply via email to