Expand description
SQL aggregate planning, bounded execution, and finalization.
Structs§
- Aggregate
Accumulator - Aggregate
Accumulator Template - Aggregate
Value Buffer - Aggregate
Value Record - Distinct
Tracker - Aggregate DISTINCT uses SQL ordering before eliminating adjacent equal inputs. Reusing sorted runs keeps both comparisons and spill behavior fallible.
- Json
Spill Run - Physical
Aggregate Executor - Registered
Aggregate Buffer - Registered
Aggregate Record
Enums§
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
falsewhen 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