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


##########
cpp/src/parquet/file_writer.cc:
##########
@@ -640,6 +667,29 @@ void ParquetFileWriter::AddKeyValueMetadata(
   }
 }
 
+std::optional<double> ParquetFileWriter::EstimateCompressedBytesPerRow() const 
{

Review Comment:
   It should include both encoded data size and compressed page data size, and 
the compressed page data typically accounts for the majority of the size. see 
the details:
   
https://github.com/apache/parquet-java/blob/master/parquet-column/src/main/java/org/apache/parquet/column/impl/ColumnWriterBase.java#L133-L138



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