Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
In Calcite, it is not necessary that the columns in the group set are in the same order as the rollup. For instance, this is the Calcite representation of a rollup for a given query:
HiveAggregate(group=[{1, 6, 7}], groups=[[{1, 6, 7}, {1, 7}, {1}, {}]], agg#0=[sum($12)], agg#1=[count($12)], agg#2=[sum($4)], agg#3=[count($4)], agg#4=[sum($15)], agg#5=[count($15)])
When we generate the Hive plan from the Calcite operator, we make such assumption incorrectly.
Attachments
Issue Links
- links to