xanderbailey commented on code in PR #3826:
URL: https://github.com/apache/iceberg-rust/pull/3826#discussion_r4806656131


##########
crates/iceberg/src/writer/file_writer/parquet_writer.rs:
##########
@@ -528,6 +528,17 @@ impl MinMaxColAggregator {
 }
 
 impl ParquetWriter {
+    /// Returns the estimated memory, in bytes, that the writer holds for the 
row group in
+    /// progress, including encoder state and Bloom filters.
+    ///
+    /// Bytes already passed to the [`FileWrite`] are not counted. See
+    /// [`AsyncArrowWriter::memory_size`].
+    pub fn memory_size(&self) -> usize {

Review Comment:
   How would a fanout writer reach this? `RollingFileWriter.inner` is private. 
Would a method on `CurrentFileStatus` (returning `current_written_size()`) 
work, with `RollingFileWriter` returning 0 when no file is open?



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