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

[jira] [Created] (CALCITE-4621) SemiJoinRule throws AssertionError on ANTI join

Ruben Q L created CALCITE-4621:
----------------------------------

             Summary: SemiJoinRule throws AssertionError on ANTI join
                 Key: CALCITE-4621
                 URL: https://issues.apache.org/jira/browse/CALCITE-4621
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.26.0
            Reporter: Ruben Q L
            Assignee: Ruben Q L
             Fix For: 1.27.0


When SemiJoinRule (both {{CoreRules.JOIN_TO_SEMI_JOIN}} and {{CoreRules.PROJECT_TO_SEMI_JOIN}}) matches an ANTI join, it fails with the following error:
{noformat}
java.lang.AssertionError: ANTI
  at org.apache.calcite.rel.rules.SemiJoinRule.perform(SemiJoinRule.java:122)
  ...
{noformat}

The problem is that the rule config only forbids RIGHT and FULL joins, and lets ANTI go through. Later when the rule is actually executed, joins with type ANTI cannot be handled, hence the {{AssertionError}}.
The rule config must be adapted to forbid also ANTI joins.



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