Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2621

Add rule to execute semi joins with correlation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.19.0
    • Component/s: None

      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)
              ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rubenql Ruben Quesada Lopez
                Reporter:
                rubenql Ruben Quesada Lopez
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m