Closed ingomueller-net closed 3 weeks ago
The direct output order section says:
The list of distinct columns from each grouping set (ordered by their first appearance) followed by the list of measures in declaration order, followed by an i32 describing the associated particular grouping set the value is derived from (if applicable).
Oh, indeed, it does. Thanks for pointing me to that part! 🙈
I believe that the
Aggregate
operation is underspecified. In particular, in the case with multiple grouping sets the specification does not seem to say in which order the output columns should be. The relevant part currently reads as follows:As an example, the grouping sets could be:
Then the possible output column orders would be
(a, b)
or(b, a)
and I think the specification say which one.