quantilesDD
Introduced in: v24.1.0 Computes multiple approximate quantiles of a sample with relative-error guarantees at different levels simultaneously. This function is equivalent toquantileDD but allows computing multiple quantile levels in a single pass, which is more efficient than calling individual quantile functions.
Syntax
relative_accuracy— Relative accuracy of the quantiles. Possible values are in the range from 0 to 1. The recommended value is 0.001 or higher.Float*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,DateorDateTime.(U)Int*orFloat*orDateorDateTime
Date and DateTime inputs the output format matches the input format. Array(Float64) or Array(Date) or Array(DateTime)
Examples
Computing multiple quantiles with a DDSketch
Query
Response