Expand description
GROUP BY and aggregate planning.
Functionsยง
- convert_
group_ by - Convert GROUP BY clause to SqlExpr list.
- extract_
aggregates_ from_ projection - Extract aggregate expressions from SELECT projection.
- group_
by_ output_ aliases - Derive the SELECT-list output alias for each GROUP BY key by correlating
each key with the projection item that references the same column. Returns
a
Vecparallel togroup_by:Some(alias)when a projection item explicitly aliases that grouped column (SELECT k AS label ... GROUP BY k), otherwiseNone(the output column name falls back to the raw grouped column name). - plan_
aggregate - Plan an aggregate query (GROUP BY + aggregate functions).