Scalar FunctionsOther Functions
rank_tdigest
Return the approximate count of items ≤ `value` in a t-digest / DDSketch sketch produced by the `tdigest()` aggregate.
The result is
an approximation — all items in the bucket containing value are
counted together.
Syntax
rank_tdigest(sketch, value)Parameters
Prop
Type
Returns: real
Examples
Example 1
print rank_tdigest(toscalar(), 50)| print_0 (real) |
|---|
| 50.0 |