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


##########
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:
   Yeah, I guess specific column check can happen inside `restricted_column` 
prior to building the set. I'll make the change



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