parse_grouping_sets

Function parse_grouping_sets 

Source
fn parse_grouping_sets(
    extensions: &SimpleExtensions,
    inner: Pair<'_, Rule>,
) -> Vec<Vec<Expression>>
Expand description

Parses the grouping section of an aggregate (everything before =>).

For example, in Aggregate[($0, $1), _ => sum($2), $0, count($2)], this parses ($0, $1), _.

Each inner Vec is one grouping set; an empty vec represents no grouping (global aggregate).

Grammar: aggregate_group_by = { grouping_set_list | expression_list }