[ 
https://issues.apache.org/jira/browse/CALCITE-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruben Quesada Lopez updated CALCITE-2621:
-----------------------------------------
    Description: 
Similarly to JoinToCorrelateRule, in some contexts it might be interesting to 
transform a SemiJoin into a LogicalCorrelate, for this purpose a 
SemiJoinToCorrelateRule will be needed.

This feature requires the fix CALCITE-2605, otherwise we would get an exception 
in EnumerableCorrelate#implement when trying to generate the Expression 
selector:

{{Caused by: java.lang.IllegalStateException: Unable to convert SEMI to 
JoinRelType
        at org.apache.calcite.sql.SemiJoinType.toJoinType(SemiJoinType.java:83)
        at 
org.apache.calcite.adapter.enumerable.EnumerableCorrelate.implement(EnumerableCorrelate.java:103)}}

  was:
Similarly to JoinToCorrelateRule, in some contexts it might be interesting to 
transform a SemiJoin into a LogicalCorrelate, for this purpose a 
SemiJoinToCorrelateRule will be needed.

This feature requires the fix CALCITE-2605, otherwise we would get an exception 
in EnumerableCorrelate#implement when trying to generate the Expression 
selector:
{{Caused by: java.lang.IllegalStateException: Unable to convert SEMI to 
JoinRelType
        at org.apache.calcite.sql.SemiJoinType.toJoinType(SemiJoinType.java:83)
        at 
org.apache.calcite.adapter.enumerable.EnumerableCorrelate.implement(EnumerableCorrelate.java:103)}}


> New rule: SemiJoinToCorrelateRule (SemiJoin => LogicalCorrelate)
> ----------------------------------------------------------------
>
>                 Key: CALCITE-2621
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2621
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Ruben Quesada Lopez
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.18.0
>
>
> Similarly to JoinToCorrelateRule, in some contexts it might be interesting to 
> transform a SemiJoin into a LogicalCorrelate, for this purpose a 
> SemiJoinToCorrelateRule will be needed.
> This feature requires the fix CALCITE-2605, otherwise we would get an 
> exception in EnumerableCorrelate#implement when trying to generate the 
> Expression selector:
> {{Caused by: java.lang.IllegalStateException: Unable to convert SEMI to 
> JoinRelType
>       at org.apache.calcite.sql.SemiJoinType.toJoinType(SemiJoinType.java:83)
>       at 
> org.apache.calcite.adapter.enumerable.EnumerableCorrelate.implement(EnumerableCorrelate.java:103)}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to