tdigest_agg¶
Description¶
Generate a single t-digest state out of an arbitrary number of numeric values. This function is purely an aggregate function.
Return type¶
tdigest
Domain¶
This is an aggregate function (aggregates rows over a group in aggregate verbs.)
This is a window function (calculates over a group of multiple input rows using windowing.)
Categories¶
Usage¶
tdigest_agg(value)
| Argument | Type | Optional | Repeatable | Restrictions | 
|---|---|---|---|---|
| value | numeric or duration | no | no | none | 
Examples¶
statsby state:tdigest_agg(float_col), group_by()
Aggregates all rows of float_col into a single t-digest representation (presented as a JSON object).