Skip to content

rollup()

Roll up multiple `tdigest`s

Since 1.0.0

Combine multiple intermediate tdigest aggregates, produced by tdigest, into a single intermediate tdigest aggregate. For example, you can use rollup to combine tdigests from 15-minute buckets into daily buckets.

The syntax is:

rollup(
digest TDigest
) RETURNS TDigest
NameTypeDefaultRequiredDescription
digestTDigest-The tdigests to roll up
ColumnTypeDescription
rollupTDigestA new tdigest created by combining the input tdigests