andygrove commented on a change in pull request #8992:
URL: https://github.com/apache/arrow/pull/8992#discussion_r548227986



##########
File path: rust/datafusion/src/physical_plan/parquet.rs
##########
@@ -99,18 +154,38 @@ impl ParquetExec {
                 .collect(),
         );
 
+        // sum the statistics
+        let mut num_rows = 0;
+        let mut total_byte_size = 0;
+        for part in &partitions {
+            num_rows += part.statistics.num_rows.unwrap_or(0);
+            total_byte_size += part.statistics.total_byte_size.unwrap_or(0);
+        }
+        let statistics = Statistics {
+            num_rows: if num_rows == 0 {
+                None

Review comment:
       Yes, that was a bit sloppy. This is now fixed. 




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to