gafiatulin commented on code in PR #25908:
URL: https://github.com/apache/datafusion/pull/25908#discussion_r4229250203


##########
datafusion/physical-plan/src/filter.rs:
##########
@@ -1118,6 +1118,13 @@ fn unique_match_limit(
     predicate: &Arc<dyn PhysicalExpr>,
     statistics: &Statistics,
 ) -> Option<usize> {
+    if !statistics
+        .column_statistics
+        .iter()
+        .any(|column| holds_each_value_once(column, &statistics.num_rows))
+    {
+        return None;
+    }

Review Comment:
   Would something like 247c956 work?



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