---
title: rollup() | Tiger Data Docs
description: Roll up multiple `uddsketch`es
---

Since [1.0.0](https://github.com/timescale/timescaledb-toolkit/releases/tag/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:

```
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. |
