Calculates a percentile over a partition, assuming a continuous distribution of values defined. Results are interpolated, rather than matching any of the specific column values. PERCENTILE_CONT is available as an Window function. See also PERCENTILE_DISC, which returns a percentile over a partition equal to a specific column value. For more information on usage, please refer to Window Functions.Documentation Index
Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
Use this file to discover all available pages before exploring further.
Syntax
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
<value> | A value between 0.0 and 1.0. | DOUBLE PRECISION, REAL |
<order_by> | An expression used for the order by clause. | Any numeric type |
<partition_by> | An expression used for the partition by clause. | Any |
Return Types
DOUBLE PRECISION
Example
The example below calculates the max percentile value based on continuous distribution of players, partitioned by game level.| nickname | percentile |
|---|---|
| kennethpark | 90 |
| sabrina21 | 85 |
| ymatthews | 80 |
| rileyjon | 75 |