uddsketch. Unlike percentile calculations, the mean calculation is exact.
This accessor allows you to calculate the mean alongside percentiles, without needing to create two separate aggregates
from the same raw data.
Samples
Calculate the mean of the integers from 0 to 100.Arguments
The syntax is:| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| sketch | UddSketch | - | The uddsketch to extract the mean from |
Returns
| Column | Type | Description |
|---|---|---|
| mean | DOUBLE PRECISION | The mean of the values in the uddsketch. |