Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Pass through parent collation request on subset or superset of join keys for EnumerableMergeJoin.
e.g.
select * from foo join bar on foo.a=bar.a and foo.b=bar.b order by foo.b;
collation on b is passed to mergejoin, mergejoin should generate an alternative with collation on b, a.
select * from foo join bar on foo.a=bar.a and foo.b=bar.b order by foo.a, foo.b, foo.c;
collation on a,b,c is passed to mergejoin, mergejoin should generate an alternative with collation on a,b,c, even the join keys are a,b, but since foo.c is also the output column, mergejoin can still request its child foo to deliver collation on a,b,c. The join keys must be the collation request's prefixes (keys order is not required to be reserved).
Attachments
Issue Links
- blocks
-
CALCITE-4052 Enable Top-down Optimization
- Open
- links to