[
https://issues.apache.org/jira/browse/CALCITE-3171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Danny Chan resolved CALCITE-3171.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.21.0
Fixed in
[e1875e3|https://github.com/apache/calcite/commit/e1875e3f78d91711ba174834cdead500361b19e6],
thanks for reporting this, [~godfreyhe] !
> SemiJoin on conditions push down throws IndexOutOfBoundsException
> -----------------------------------------------------------------
>
> Key: CALCITE-3171
> URL: https://issues.apache.org/jira/browse/CALCITE-3171
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.19.0
> Reporter: godfrey he
> Assignee: Danny Chan
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.21.0
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> the following code in RelOptUtil#pushDownJoinConditions only does not
> consider SEMI/ANTI join
> {code:java}
> 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()));
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)