jonathanc-n commented on code in PR #20846:
URL: https://github.com/apache/datafusion/pull/20846#discussion_r2913061441


##########
datafusion/physical-plan/src/union.rs:
##########
@@ -854,7 +853,7 @@ fn col_stats_union(
     mut left: ColumnStatistics,
     right: &ColumnStatistics,
 ) -> ColumnStatistics {
-    left.distinct_count = Precision::Absent;
+    left.distinct_count = 
left.distinct_count.add(&right.distinct_count).to_inexact();

Review Comment:
   @asolimando Do you think this would be a better alternative when merging 
parquet row groups instead of max?



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