nuno-faria commented on code in PR #19918:
URL: https://github.com/apache/datafusion/pull/19918#discussion_r2710197633


##########
datafusion/optimizer/src/push_down_filter.rs:
##########
@@ -457,9 +457,9 @@ fn push_down_all_join(
 
     // For infer predicates, if they can not push through join, just drop them
     for predicate in inferred_join_predicates {
-        if left_preserved && checker.is_left_only(&predicate) {
+        if checker.is_left_only(&predicate) {
             left_push.push(predicate);
-        } else if right_preserved && checker.is_right_only(&predicate) {
+        } else if checker.is_right_only(&predicate) {
             right_push.push(predicate);
         }

Review Comment:
   My reasoning for this is that if this is an inferred predicated (i.e., 
inferred from the join) and can be pushed to the left/right relation, it should 
be pushed, independently of the type.



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