comphead opened a new pull request, #3826: URL: https://github.com/apache/iceberg-rust/pull/3826
## Which issue does this PR close? - Closes #3825. ## What changes are included in this PR? `ParquetWriter::memory_size()` returns parquet's `AsyncArrowWriter::memory_size()` for the row group in progress, or 0 before the first write. `current_written_size()` reports the encoded size estimate, which leaves out what parquet holds while it encodes: Bloom filter bitsets, which are allocated in full when a row group starts, and dictionary state. A caller that charges open files to a memory pool, such as a fanout writer with one file per partition, needs the in-memory figure. The method is inherent rather than a new `CurrentFileStatus` method, so the rolling and data file writers are unchanged. I can move it onto the trait if that is preferred. ## Are these changes tested? A unit test checks that `memory_size()` is 0 before the first write, matches a plain `ArrowWriter`'s `memory_size()` for the same batch and properties while a row group is in progress, and is 0 again once the row group completes. ## AI Disclosure Code, test and description written with Claude Code. Points worth a reviewer's check: the test's last assertion relies on parquet's `ArrowWriter` flushing as soon as a row group reaches `max_row_group_row_count`, and the doc comment states that bytes already passed to `FileWrite` are not counted. -- 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]
