Skip to main content

Module aggregation

Module aggregation 

Source
Expand description

SQL aggregate planning, bounded execution, and finalization.

Structs§

AggregateAccumulator
AggregateAccumulatorTemplate
AggregateValueBuffer
AggregateValueRecord
DistinctTracker
Aggregate DISTINCT uses SQL ordering before eliminating adjacent equal inputs. Reusing sorted runs keeps both comparisons and spill behavior fallible.
JsonSpillRun
PhysicalAggregateExecutor
RegisteredAggregateBuffer
RegisteredAggregateRecord

Enums§

AggregateStatePlan
AggregateValueRunReader
NumericInputKind
RegisteredAggregateRunReader

Functions§

aggregate_accumulator_templates
aggregate_exprs
aggregate_input_value
aggregate_input_values
aggregate_json_key
aggregate_json_key_with_catalog
aggregate_slot_index
aggregate_targets
Aggregate states needed by a query block, in accumulator order.
aggregate_value
aggregate_value_with_args
Finalize a built-in aggregate. JSON aggregates call their inputs’ output functions, so enum inputs render through enums.
collect_aggregate_exprs
compare_aggregate_value_records
compare_extrema
compare_registered_aggregate_records
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
contains_aggregate_with_control
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
exprs_match_with_control
group_context_row
has_aggregate
has_aggregate_with_control
instantiate_aggregate_accumulators
is_aggregate
is_aggregate_with_control
is_builtin_aggregate
is_json_array_aggregate
is_json_object_aggregate
is_ordered_set_aggregate
literals_equal
merge_aggregate_value_runs
merge_registered_aggregate_runs
mode_value
new_aggregate_accumulators_with_budget
observe_aggregate
observe_builtin_aggregate_value
The accumulator’s state plan decides whether a NULL input reaches the aggregate.
percentile_cont
percentile_disc
percentile_fraction
read_aggregate_value_record
read_bounded_json_spill_record
read_registered_aggregate_record
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.
value_as_f64
value_gt
value_lt
visit_aggregate_exprs_with_control
write_json_spill_record