polars_plan::plans

Function can_pre_agg

Source
pub fn can_pre_agg(
    agg: Node,
    expr_arena: &Arena<AExpr>,
    _input_schema: &Schema,
) -> bool
Expand description

Checks whether an expression can be pre-aggregated in a group-by. Note that this also must be implemented physically, so this isn’t a complete list.