Module average

Module average 

Source
Expand description

Defines Avg & Mean aggregate & accumulators

Structsยง

Avg
AvgAccumulator
An accumulator to compute the average
AvgGroupsAccumulator ๐Ÿ”’
An accumulator to compute the average of [PrimitiveArray<T>]. Stores values as native types, and does overflow checking
DecimalAvgAccumulator ๐Ÿ”’
An accumulator to compute the average for decimals
DurationAvgAccumulator ๐Ÿ”’
An accumulator to compute the average for duration values

Functionsยง

avg
Returns the avg of a group of values.
avg_distinct
avg_udaf
AggregateFunction that returns a AggregateUDF for Avg