uddsketch aggregate.
approx_percentile()
Estimate the value at a given percentile from a uddsketch
Since 1.0.0
Estimate the approximate value at a percentile from a
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Estimate the value at a given percentile from a uddsketch
uddsketch aggregate.
SELECT
approx_percentile(0.01, uddsketch(data))
FROM generate_series(0, 100) data;
approx_percentile
-------------------
0.999
approx_percentile(
percentile DOUBLE PRECISION,
uddsketch UddSketch
) RETURNS DOUBLE PRECISION
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| percentile | DOUBLE PRECISION | - | ✔ | the percentile to compute. Must be within the range [0.0, 1.0] |
| sketch | UddSketch | - | ✔ | the uddsketch aggregate |
| Column | Type | Description |
|---|---|---|
| approx_percentile | DOUBLE PRECISION | The estimated value at the requested percentile. |