otel_histogram_quantile

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

Estimates a population quantile from an OpenTelemetry classic histogram encoded as an object. The histogram argument is a row-level object payload (not the dedicated histogram reptype); the quantile argument must be a compile-time float64 between 0 and 1 inclusive, otherwise compilation fails. The result is float64. Pair it with histogram objects produced from metric pipelines or parsed JSON; for strongly typed histogram columns on the metric interface prefer histogram_quantile, which dispatches by representation.

Domain

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

Categories

Examples

make_col p95:otel_histogram_quantile(payload.histogram, 0.95)

Derives a 95th percentile scalar from a nested OpenTelemetry classic histogram object without a typed histogram column.