wecharyu commented on code in PR #49527:
URL: https://github.com/apache/arrow/pull/49527#discussion_r2955057372


##########
cpp/src/parquet/file_writer.cc:
##########
@@ -198,6 +199,21 @@ class RowGroupSerializer : public RowGroupWriter::Contents 
{
     return total_compressed_bytes_written;
   }
 
+  int64_t EstimatedBufferedBytes() const override {
+    if (closed_) {
+      return 0;
+    }
+    int64_t estimated_buffered_value_bytes = 0;
+    for (size_t i = 0; i < column_writers_.size(); i++) {
+      if (column_writers_[i]) {
+        estimated_buffered_value_bytes +=
+            column_writers_[i]->estimated_buffered_value_bytes() +
+            column_writers_[i]->EstimatedBufferedLevelsBytes();

Review Comment:
   Addressed.



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

Reply via email to