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_r279982792
########## File path: core/src/main/java/org/apache/calcite/rel/core/JoinRelType.java ########## @@ -94,6 +142,37 @@ public JoinRelType cancelNullsOnRight() { return this; } } + + /** Transform this JoinRelType to CorrelateJoinType. **/ + public CorrelateJoinType toLinq4j() { + switch (this) { + case INNER: + return CorrelateJoinType.INNER; + case LEFT: + return CorrelateJoinType.LEFT; + case SEMI: + return CorrelateJoinType.SEMI; + case ANTI: + return CorrelateJoinType.ANTI; + } + throw new IllegalStateException( + "Unable to convert " + this + " to CorrelateJoinType"); + } Review comment: Oops, the `calcite-linq4j` module can not see `JoinRelType`, it is a independent module apart from `calcite-core`, actually calcite-core depends on `calcite-linq4j` ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services