Expand description
Aggregate functions for GROUP BY operations
This module provides SQL aggregate functions like SUM, AVG, COUNT, MIN, MAX
that work with the DataView
partitioning system for efficient GROUP BY queries.
Modules§
- analytics
- Analytics aggregate functions for time series and statistical operations
- functions
- Concrete implementations of aggregate functions
Structs§
- Aggregate
Registry - Registry of aggregate functions
- AvgState
- State for AVG aggregation
- MinMax
State - State for MIN/MAX aggregation
- Mode
State - State for MODE aggregation (most frequent value)
- Percentile
State - State for PERCENTILE aggregation
- String
AggState - State for STRING_AGG aggregation
- SumState
- State for SUM aggregation
- Variance
State - State for VARIANCE/STDDEV aggregation
Enums§
- Aggregate
State - State maintained during aggregation
Traits§
- Aggregate
Function - Trait for all aggregate functions
Functions§
- contains_
aggregate - Check if an expression contains aggregate functions
- is_
aggregate_ compatible - Check if an expression is aggregate-compatible (either an aggregate or a constant) This is used to determine if a SELECT list should produce a single row
- is_
constant_ expression - Check if an expression is a constant (string literal, number literal, boolean, null) Constants are compatible with aggregate queries and should produce a single row