You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/10/26 02:01:30 UTC

[GitHub] [calcite] xy2953396112 commented on a change in pull request #1526: [CALCITE-3439] Support Intersect and Minus in RelMdPredicates

xy2953396112 commented on a change in pull request #1526: [CALCITE-3439] Support Intersect and Minus in RelMdPredicates
URL: https://github.com/apache/calcite/pull/1526#discussion_r339281776
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/rel/metadata/RelMdPredicates.java
 ##########
 @@ -410,6 +415,52 @@ public RelOptPredicateList getPredicates(Union union, RelMetadataQuery mq) {
     return RelOptPredicateList.of(rexBuilder, predicates);
   }
 
+  /**
+   * Infers predicates for a Intersect.
+   */
+  public RelOptPredicateList getPredicates(Intersect intersect, RelMetadataQuery mq) {
+    final RexBuilder rexBuilder = intersect.getCluster().getRexBuilder();
+
+    final RexExecutorImpl rexImpl =
+        (RexExecutorImpl) (intersect.getCluster().getPlanner().getExecutor());
+    final RexImplicationChecker rexImplicationChecker =
+        new RexImplicationChecker(
+            intersect.getCluster().getRexBuilder(), rexImpl, intersect.getRowType());
 
 Review comment:
   use rexBuilder?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services