Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.26.0
Description
Credits to thomas.rebele for discovering the issue.
When SemiJoinRule (both CoreRules.JOIN_TO_SEMI_JOIN and CoreRules.PROJECT_TO_SEMI_JOIN) matches an ANTI join, it fails with the following error:
java.lang.AssertionError: ANTI at org.apache.calcite.rel.rules.SemiJoinRule.perform(SemiJoinRule.java:122) ...
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.
Attachments
Issue Links
- is related to
-
CALCITE-4623 SemiJoinRule should not match SEMI join
- Closed
- links to