danny0405 commented on a change in pull request #1157: [CALCITE-2969] Improve 
design of join-like relational expressions
URL: https://github.com/apache/calcite/pull/1157#discussion_r280046818
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/plan/RelOptUtil.java
 ##########
 @@ -3734,6 +3740,13 @@ private Exists(RelNode r, boolean indicator, boolean 
outerJoin) {
       this.outerJoin = outerJoin;
     }
   }
+
+  /** Check if it is the join whose condition is based on column equality. */
+  public static boolean isEquiJoin(Join join) {
+    return join.isNonCorrelateSemiJoin()
+        || join instanceof EnumerableHashJoin
+        || join instanceof EnumerableMergeJoin;
+  }
 
 Review comment:
   I have add some comments for `EquiJoin` class, we need a class like this to 
tell Clacite that the join definitely can not have non-equi join conditions, 
either a tool method or a class, we choose the later, it is not about what is a 
`EquiJoin` that much, we just need a tag class to let Clacite enumerables and 
other system to mark that instance.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to