Description
SQL standard will not allow aggreagtes in group by or inside another aggregates.
If user wants they can do in parent query. Same should follow the N1QL.
explain select 1 from default group by sum(c1);
explain select min(sum(c2)) from default;