Scalar FunctionsOther Functions
percentile_array_tdigest
Extract a dynamic array of percentiles from a sketch aggregate produced
Syntax
percentile_array_tdigest(sketch, percentiles)Parameters
Prop
Type
Returns: dynamic
Examples
Example 1
print percentile_array_tdigest(
toscalar(),
dynamic([50, 90, 99])
)| print_0 (dynamic) |
|---|
| [50.91619319361955,90.94003605383035,100.50461817038193] |
otel_histogram_percentile
Extract a percentile from a merged OpenTelemetry histogram (output of otel_histogram_merge). Returns NaN for null, empty, or invalid histogram input, and for percentile values outside 0-100. For explicit histograms, uses linear interpolation within the target bucket. For exponential histograms, uses the geometric midpoint of the target bucket.
percentile_tdigest
Calculate the percentile from a t-digest representation.