otel_exponential_histogram_quantile

otel_exponential_histogram_quantile(histogram: object, quantile: const float64) -> float64

Estimates a population quantile from an OpenTelemetry exponential histogram encoded as an object. The histogram must carry exponential layout; the quantile argument is a compile-time float64 in the closed interval from 0 to 1, matching the validation used by otel_histogram_quantile. The returned value is float64. Use this when the histogram object comes from an untyped object column; when the column is already an exponential histogram type, histogram_quantile is the unified entry point.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col p50:otel_exponential_histogram_quantile(attrs.exponential_histogram, 0.5)

Estimates the median from an exponential histogram object stored in a loosely typed attribute field.