Expand description
Aggregates functionalities
Modules§
- group_
values GroupValuestrait for storing and interning group keys- no_
grouping 🔒 - Aggregate without grouping columns
- order
- row_
hash 🔒 - Hash aggregation
- topk 🔒
- TopK functionality for aggregates
- topk_
stream 🔒 - A memory-conscious aggregation implementation that limits group buckets to a fixed number
Structs§
- Aggregate
Exec - Hash aggregate execution plan
- Physical
Group By - Represents
GROUP BYclause in the plan (including the more general GROUPING SET) In the case of a simpleGROUP BY a, bclause, this will contain the expression [a, b] and a single group [false, false]. In the case ofGROUP BY GROUPING SETS/CUBE/ROLLUPthe planner will expand the expression into multiple groups, using null expressions to align each group. For example, with a group by clauseGROUP BY GROUPING SETS ((a,b),(a),(b))the planner should create aPhysicalGroupBylike
Enums§
- Aggregate
Mode - Aggregation modes
- Stream
Type 🔒
Constants§
- AGGREGATION_
HASH_ 🔒SEED - Hard-coded seed for aggregations to ensure hash values differ from
RepartitionExec, avoiding collisions.
Functions§
- aggregate_
expressions - Returns physical expressions for arguments to evaluate against a batch.
- concat_
slices - Concatenates the given slices.
- create_
accumulators - create_
schema 🔒 - determine_
finer 🔒 - evaluate 🔒
- Evaluates expressions against a record batch.
- evaluate_
group_ by - Evaluate a group by expression against a
RecordBatch - evaluate_
many - Evaluates expressions against a record batch.
- evaluate_
optional 🔒 - finalize_
aggregation - returns a vector of ArrayRefs, where each entry corresponds to either the final value (mode = Final, FinalPartitioned and Single) or states (mode = Partial)
- get_
aggregate_ 🔒expr_ req - Determines the lexical ordering requirement for an aggregate expression.
- get_
finer_ aggregate_ exprs_ requirement - Gets the common requirement that satisfies all the aggregate expressions. When possible, chooses the requirement that is already satisfied by the equivalence properties.
- group_
id_ 🔒array - merge_
expressions 🔒 - uses
state_fieldsto build a vec of physical column expressions required to merge the AggregateFunctionExpr’ accumulator’s state.