Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
CALCITE-3087 fixed AggregateOnProjectToAggregateUnifyRule when mapping under Aggregate breaks ordering. But it fails when there's missing grouping in query compared with target.
Below matching fails:
MV: select empid, deptno, name, count(*) from emps group by empid, deptno, name Query: select name, empid, count(*) from emps group by name, empid
Note that – comparing groupings in MV (empid, deptno, name) and groupings in query (name, empid), deptno is missed and ordering is broken
Attachments
Issue Links
- relates to
-
CALCITE-3087 AggregateOnProjectToAggregateUnifyRule ignores Project incorrectly when its Mapping breaks ordering
- Closed
- links to