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

New AntiJoin relational expression

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.20.0
    • Component/s: None

      Description

      The goal of this ticket is to follow the discussion started in CALCITE-2920 (and its PR).

      With the implementation of CALCITE-2920, RelBuilder has now a method to create an AntiJoin. However, since, for the moment, there is no "AntiJoin" expression, the only possibility to build an AntiJoin is using a LogicalCorrelate with SemiJoinType.ANTI, and that's exactly what this method does, for now.
      The idea would be to "generalize" this with the creation of a new AntiJoin (a.k.a. AntiSemiJoin) relational expression. With the implementation of CALCITE-2969 (re-design of join-like expressions), it seems clear that the new AntiJoin expression will be a LogicalJoin with JoinType=ANTI. Also, it will have to be verified that:

      • this new AntiJoin works fine in EnumerableConvention with all types of join condition (equi-join, partial equi-join, non equi-join)
      • this new AntiJoin can be correctly transformed into a Correlate (type ANTI) via JoinToCorrelateRule

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rubenql Ruben Q L
                Reporter:
                rubenql Ruben Q L
              • Votes:
                0 Vote for this issue
                Watchers:
                6 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 - 3h 10m
                  3h 10m