Skip to main content

Module aggregates

Module aggregates 

Source
Expand description

Aggregate discovery and expression equivalence for SQL grouping.

Re-exports§

pub use super::is_builtin_aggregate;

Functions§

aggregate_exprs
aggregate_slot_index
aggregate_targets
Aggregate states needed by a query block, in accumulator order.
collect_aggregate_exprs
compile_group_slots
Group values follow aggregate finalizers in the retained scalar slot namespace. Match a complete grouped expression before descending into its inputs.
compile_having_aggregate_slots
compile_projection_aggregate_slots
contains_aggregate
expr_references_columns
Collect the top-level column names an expression reads. Returns false when the expression can reach arbitrary fields (*, subqueries, window calls), in which case callers must materialise whole documents.
exprs_match
has_aggregate
is_aggregate
literals_equal
select_grouping_set
An absent grouping-set key is NULL as a complete expression, even when another selected key exposes one of its inputs. Aggregate arguments still read the original input rows.