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;
Attachments
For Gerrit Dashboard: MB-26803 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
86977,3 | MB-26803,MB-26467, MB-26466 Aggregate semantic enforcement | master | query | Status: MERGED | +2 | +1 |