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

Add rule to execute semi joins with correlation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.19.0
    • 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

              rubenql Ruben Q L
              rubenql Ruben Q L
              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