build_grouping_fields

Function build_grouping_fields 

Source
fn build_grouping_fields(
    expression_sets: &[Vec<Expression>],
) -> (Vec<Grouping>, Vec<Expression>)
Expand description

Deduplicates expressions across all sets and produces the AggregateRel’s protobuf fields: a flat deduplicated expression list and per-set Grouping messages with index references into that list.