LogicalAggregate's create method gets the trait set of Convention.NONE from input's cluster, but doesn't use any trait information from the input. But to have proper collation trait set we need to consider input's collation trait set when inferring LogicalAggregate's traits.
CALCITE-783 Infer collation of Project using monotonicity
- is related to
CALCITE-853 EnumerableAggregate should take advantage of input collation