quantiles
Introduced in: v1.1.0 Computes multiple approximate quantiles of a numeric data sequence at different levels simultaneously. This function applies reservoir sampling with a reservoir size up to 8192 and a random number generator for sampling. The result is non-deterministic. Usingquantiles is more efficient than calling multiple individual quantile functions when you need multiple quantile values, as all quantiles are calculated in a single pass through the data.
Syntax
level— Levels of quantiles. One or more constant floating-point numbers from 0 to 1. We recommend usinglevelvalues in the range of[0.01, 0.99].Float*
expr— Expression over the column values resulting in numeric data types, Date or DateTime.(U)Int*orFloat*orDecimal*orDateorDateTime
Array(Float64) or Array(Date) or Array(DateTime)
Examples
Computing multiple quantiles efficiently
Query
Response