Module sum

Module sum 

Source
Expand description

Defines SUM and SUM DISTINCT aggregate accumulators

Macros§

downcast_sum 🔒
Sum only supports a subset of numeric types, instead relying on type coercion

Structs§

SlidingDistinctSumAccumulator
A sliding‐window accumulator for SUM(DISTINCT) over Int64 columns. Maintains a running sum so that evaluate() is O(1).
SlidingSumAccumulator 🔒
This accumulator incrementally computes sums over a sliding window
Sum
SumAccumulator 🔒
This accumulator computes SUM incrementally

Functions§

sum
Returns the sum of a group of values.
sum_distinct
sum_udaf
AggregateFunction that returns a AggregateUDF for Sum