solveme commented on code in PR #5248:
URL: https://github.com/apache/calcite/pull/5248#discussion_r3979595495


##########
core/src/main/java/org/apache/calcite/rel/metadata/RelMdPredicates.java:
##########
@@ -878,7 +878,7 @@ public RelOptPredicateList inferPredicates(
       case RIGHT:
         return RelOptPredicateList.of(rexBuilder,
             RelOptUtil.conjunctions(rightChildPredicates),
-            inferredPredicates, EMPTY_LIST);
+            leftInferredPredicates, rightInferredPredicates);

Review Comment:
   Hi. Sorry I'm not sure that I fully got you. If you're proposing to merge 
`case RIGHT` with `LEFT` and `ANTI` then we can't do it since second argument 
of `RelOptPredicateList.of(..)` differs:
   
   ```
   LEFT, ANTI: RelOptUtil.conjunctions(leftChildPredicates) 
   RIGHT:      RelOptUtil.conjunctions(rightChildPredicates) 
   ```



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

Reply via email to