Scalar FunctionsOther Functions
percentrank_tdigest
Return the approximate percentile rank of `value` in a t-digest / DDSketch sketch produced by the `tdigest()` aggregate.
Equivalent to
100 * rank_tdigest(sketch, value) / total_count. Empty sketch
yields NaN.
Syntax
percentrank_tdigest(sketch, value)Parameters
Prop
Type
Returns: real
Examples
Example 1
print percentrank_tdigest(toscalar(), 50)| print_0 (real) |
|---|
| 50.0 |