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

Silun Dong resolved CALCITE-7414.
---------------------------------
    Fix Version/s: 1.42.0
       Resolution: Fixed

Fixed in 
[https://github.com/apache/calcite/commit/4c041cb95fd84029a5b292fab0d49eaa02c17f97]

Thanks for your review [~jensen] 

> Incorrect mapping of CorDef after decorrelating a Join in 
> TopDownGeneralDecorrelator
> ------------------------------------------------------------------------------------
>
>                 Key: CALCITE-7414
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7414
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.41.0
>            Reporter: Silun Dong
>            Assignee: Silun Dong
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> After decorrelating a node, we need to determine which output column replaces 
> outer variable (i.e. populate the map from {{CorDef}} to output index in new 
> node). When decorrelating a Join, we have to take the join type into account 
> to decide which side of the Join to use for the replacement (refer to section 
> 3.3 in {_}Improving Unnesting of Complex Queries{_}). The current 
> implementation omits this logic. The corresponding test case can be found in 
> CALCITE-7379.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to