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/06/04 08:55:00 UTC

[jira] [Updated] (CALCITE-4042) JoinCommuteRule must not match SEMI / ANTI join

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

Ruben Q L updated CALCITE-4042:
-------------------------------
    Description: 
JoinCommuteRule must not match SEMI / ANTI join, because these types cannot be swapped.

This is a minor issue, because the "default" JoinCommuteRule.INSTANCE matches only INNER joins. However, there is another version of the rule (JoinCommuteRule.SWAP_OUTER, currently only used in a few unit tests), to match also outer joins, which could potentially match a SEMI / ANTI join.

  was:
JoinCommuteRule should not match SEMI / ANTI join, because these types cannot be swapped.

This is a minor issue, because the "default" JoinCommuteRule.INSTANCE matches only INNER joins. However, there is another version of the rule (JoinCommuteRule.SWAP_OUTER, currently only used in a few unit tests), to match also outer joins, which could potentially match a SEMI / ANTI join.


> JoinCommuteRule must not match SEMI / ANTI join
> -----------------------------------------------
>
>                 Key: CALCITE-4042
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4042
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.23.0
>            Reporter: Ruben Q L
>            Assignee: Ruben Q L
>            Priority: Minor
>             Fix For: 1.24.0
>
>
> JoinCommuteRule must not match SEMI / ANTI join, because these types cannot be swapped.
> This is a minor issue, because the "default" JoinCommuteRule.INSTANCE matches only INNER joins. However, there is another version of the rule (JoinCommuteRule.SWAP_OUTER, currently only used in a few unit tests), to match also outer joins, which could potentially match a SEMI / ANTI join.



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