Module aggregates

Module aggregates 

Source
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§

AggregateRegistry
Registry of aggregate functions
AvgState
State for AVG aggregation
MinMaxState
State for MIN/MAX aggregation
ModeState
State for MODE aggregation (most frequent value)
PercentileState
State for PERCENTILE aggregation
StringAggState
State for STRING_AGG aggregation
SumState
State for SUM aggregation
VarianceState
State for VARIANCE/STDDEV aggregation

Enums§

AggregateState
State maintained during aggregation

Traits§

AggregateFunction
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