Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
Once CALCITE-328 is completed and Join has a flag eliminateRightDuplicates, we need a rule to populate that flag from SQL queries.
Transformers that deal with 'IN subquery' (both correlated and uncorrelated) should set this flag. (In particular check TPC-DS Q95.)
Also queries written '... JOIN (SELECT DISTINCT ...)'.
Also handle queries whose right input is known to be already unique, e.g.
SELECT emp.name FROM emp JOIN dept USING (deptno) WHERE dept.location = 'San Francisco'
Attachments
Issue Links
- duplicates
-
CALCITE-368 Add SemiJoinRule, planner rule to convert project-join-aggregate into semi-join
- Closed
- relates to
-
CALCITE-1495 SemiJoinRule should not apply to RIGHT and FULL JOIN
- Closed
-
CALCITE-5201 Improve SemiJoinRule to match Join's right input which is unique for Join keys
- Closed