Samples
Estimate the percentile rank of the value99, given a sample containing the numbers from 0 to 100.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Estimate the percentile of a given value from a uddsketch
99, given a sample containing the numbers from 0 to 100.
SELECT
approx_percentile_rank(99, uddsketch(data))
FROM generate_series(0, 100) data;
approx_percentile_rank
----------------------------
0.9851485148514851
approx_percentile_rank(
value DOUBLE PRECISION,
sketch UddSketch
) RETURNS DOUBLE PRECISION
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| value | DOUBLE PRECISION | - | ✔ | the value to estimate the percentile of |
| sketch | UddSketch | - | ✔ | the uddsketch aggregate |
| Column | Type | Description |
|---|---|---|
| approx_percentile_rank | DOUBLE PRECISION | The estimated percentile associated with the provided value. |