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/03/06 08:33:00 UTC
[jira] [Commented] (CALCITE-3837) AntiJoin with empty right input
can always be transformed as its left input
[ https://issues.apache.org/jira/browse/CALCITE-3837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17053149#comment-17053149 ]
Ruben Q L commented on CALCITE-3837:
------------------------------------
Fixed via https://github.com/apache/calcite/commit/e9d302ffe37531c3e8eb5f657f236fe14d79992e
> AntiJoin with empty right input can always be transformed as its left input
> ---------------------------------------------------------------------------
>
> Key: CALCITE-3837
> URL: https://issues.apache.org/jira/browse/CALCITE-3837
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.22.0
> Reporter: Ruben Q L
> Assignee: Ruben Q L
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.23.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> CALCITE-3783 fixed {{PruneEmptyRules#JOIN_RIGHT_INSTANCE}} for join type ANTI:
> {code}
> Join(Scan(Emp), Empty, ANTI) becomes Scan(Emp)
> {code}
> However, it performs this transformation only in case of anti equi-join (in case of non-equi, no transformation is made).
> Re-considering this, I believe this is a mistake, and the transformation can always be performed, independently of the join condition (equi / non-equi, it does not matter).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)