pub fn plan_aggregate_clauses(
select: &Select,
order_by: Option<&OrderBy>,
table_columns: &[ColumnInfo],
scope: &TableScope,
functions: &FunctionRegistry,
) -> Result<AggregateClauses>Expand description
Plan the aggregate clauses of select against scope.
table_columns holds the declared columns of a single-collection
source, so a GROUP BY name that is an input column wins over a SELECT
alias. A join passes an empty slice. order_by is the enclosing query’s
ORDER BY, read only to learn whether it names an aggregate of its own.