> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-poc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# rollup()

> Roll up multiple `uddsketch`es

<Icon icon="tag" iconType="duotone" /> Since [1.0.0][toolkit-1.0.0]

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

## Arguments

The syntax is:

```sql theme={"dark"}
rollup(
  sketch UddSketch
) RETURNS UddSketch
```

| Name   | Type      | Default | Required | Description                           |
| ------ | --------- | ------- | -------- | ------------------------------------- |
| sketch | UddSketch | -       | ✔        | The `uddsketch` aggregates to roll up |

## Returns

| Column | Type      | Description                                                                        |
| ------ | --------- | ---------------------------------------------------------------------------------- |
| rollup | UddSketch | A new `uddsketch` aggregate created by combining the input `uddsketch` aggregates. |

[toolkit-1.0.0]: https://github.com/timescale/timescaledb-toolkit/releases/tag/1.0.0
