You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Ruben Q L (Jira)" <ji...@apache.org> on 2020/02/12 09:29:00 UTC

[jira] [Resolved] (CALCITE-3783) PruneEmptyRules#JOIN_RIGHT_INSTANCE wrong behavior for JoinRelType.ANTI

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

Ruben Q L resolved CALCITE-3783.
--------------------------------
    Fix Version/s: 1.22.0
       Resolution: Fixed

Fixed via https://github.com/apache/calcite/commit/10a5b8a89d319e6fed563e7e49518cfc960b93d6

> PruneEmptyRules#JOIN_RIGHT_INSTANCE wrong behavior for JoinRelType.ANTI
> -----------------------------------------------------------------------
>
>                 Key: CALCITE-3783
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3783
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.21.0
>            Reporter: Ruben Q L
>            Assignee: Ruben Q L
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.22.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The rule PruneEmptyRules#JOIN_RIGHT_INSTANCE "_converts a Join to empty if its right child is empty_", e.g.
> {code}
> Join(Scan(Emp), Empty, INNER) becomes Empty
> {code}
> The rule verifies that the join type cannot be LEFT / FULL; however in case of ANTI, it performs the transformation:
> {code}
> Join(Scan(Emp), Empty, ANTI) becomes Empty
> {code}
> whereas the actual result should be:
> {code}
> Join(Scan(Emp), Empty, ANTI) becomes Scan(Emp)
> {code}
> in case of anti equi-join (in case of non-equi, no transformation shall be made).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)