[jira] [Updated] (CALCITE-3171) SemiJoin on conditions push down throws IndexOutOfBoundsException

2019-07-07 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/CALCITE-3171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated CALCITE-3171:

Labels: pull-request-available  (was: )

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


[jira] [Updated] (CALCITE-3171) SemiJoin on conditions push down throws IndexOutOfBoundsException

2019-07-06 Thread Danny Chan (JIRA)


 [ 
https://issues.apache.org/jira/browse/CALCITE-3171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Danny Chan updated CALCITE-3171:

Summary: SemiJoin on conditions push down throws IndexOutOfBoundsException  
(was: RelOptUtil#pushDownJoinConditions should handle SEMI/ANTI join specially 
about project shift mapping)

> 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
>Priority: Major
>
> 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)