Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
When are correlated join is rewritten to correlate + filters, if the conditions contains a subquery with correlate variable from the right side, the result rewrite is incorrect. The correlated variable while be indexed from the context of the join, however in the case of right side, this should be shifted by the size of the left index.
Attachments
Issue Links
- blocks
-
CALCITE-4686 SubQueryRemoveRule.matchJoin should correctly rewrite all sub-queries
- In Progress