b41sh commented on a change in pull request #719:
URL: https://github.com/apache/arrow-datafusion/pull/719#discussion_r670558958
##########
File path: datafusion/src/physical_plan/parquet.rs
##########
@@ -312,22 +431,47 @@ impl ParquetExec {
if let Some(x) = &part.statistics.column_statistics {
let part_nulls: Vec<Option<usize>> =
x.iter().map(|c| c.null_count).collect();
- has_null_counts = true;
+ has_statistics = true;
+
+ let part_max_values: Vec<Option<ScalarValue>> =
+ x.iter().map(|c| c.max_value.clone()).collect();
+ let part_min_values: Vec<Option<ScalarValue>> =
+ x.iter().map(|c| c.min_value.clone()).collect();
for &i in projection.iter() {
null_counts[i] = part_nulls[i].unwrap_or(0);
+ if let Some(part_max_value) = part_max_values[i].clone() {
+ if let Some(max_value) = &mut max_values[i] {
+ let _ = max_value.update(&[part_max_value]);
Review comment:
ok, I will modify it.
--
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]