Module percentile_cont

Module percentile_cont 

Source

Structsยง

DistinctPercentileContAccumulator ๐Ÿ”’
The distinct percentile_cont accumulator accumulates the raw input values using a HashSet to eliminate duplicates.
PercentileCont
PERCENTILE_CONT aggregate expression. This uses an exact calculation and stores all values in memory before computing the result. If an approximation is sufficient then APPROX_PERCENTILE_CONT provides a much more efficient solution.
PercentileContAccumulator ๐Ÿ”’
The percentile_cont accumulator accumulates the raw input values as native types.
PercentileContGroupsAccumulator ๐Ÿ”’
The percentile_cont groups accumulator accumulates the raw input values

Constantsยง

INTERPOLATION_PRECISION ๐Ÿ”’
Precision multiplier for linear interpolation calculations.

Functionsยง

calculate_percentile ๐Ÿ”’
Calculate the percentile value for a given set of values. This function performs an exact calculation by sorting all values.
percentile_cont
Computes the exact percentile continuous of a set of numbers
percentile_cont_udaf
AggregateFunction that returns a AggregateUDF for PercentileCont