Skip to main content

extract_aggregates_from_projection

Function extract_aggregates_from_projection 

Source
pub fn extract_aggregates_from_projection(
    items: &[SelectItem],
    functions: &FunctionRegistry,
    scope: &TableScope,
) -> Result<Vec<AggregateExpr>>
Expand description

Extract aggregate expressions from SELECT projection.

scope gates each aggregate argument, so a column no relation declares raises an undefined-column error instead of planning.