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

SemiJoin on conditions push down throws IndexOutOfBoundsException

    XMLWordPrintableJSON

    Details

      Description

      the following code in RelOptUtil#pushDownJoinConditions only does not consider SEMI/ANTI join

          if (!extraLeftExprs.isEmpty() || !extraRightExprs.isEmpty()) {
            Mappings.TargetMapping mapping =
                Mappings.createShiftMapping(
                    leftCount + extraLeftExprs.size()
                        + rightCount + extraRightExprs.size(),
                    0, 0, leftCount,
                    leftCount, leftCount + extraLeftExprs.size(), rightCount);
            relBuilder.project(relBuilder.fields(mapping.inverse()));
          }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                danny0405 Danny Chen
                Reporter:
                godfreyhe godfrey he
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 20m
                  1h 20m