---
title: "uuidv7 function in Strata | Oplema"
description: "Return a time-ordered random UUID v7 for each row, such as 019482e4-1441-7aad-8127-eec99573b0a0. Write it as uuidv7() in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/uuidv7"
updated: "2026-11-04"
---

# uuidv7

Return a random, time-ordered UUID v7, such as 019482e4-1441-7aad-8127-eec99573b0a0.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **VARCHAR**.

### Expression

```
uuidv7()
```

### Expected behavior

```
A newly generated version 7 UUID.
```

The expression returns `UUID`. Formula stores it as `VARCHAR` in this example. Its value varies between executions; the example checks its behavior rather than a fixed value.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | 01a19e81-66c3-750c-8487-74ad8cbc4aa9 |

## Arguments and types

```
uuidv7()
```

Supported signatures (1)

```
uuidv7() → UUID
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Related functions

[gen\_random\_uuid

Return a random UUID v4, such as 7e7ea35f-f813-46ce-ac7b-12658c021bcb.

](https://oplema.com/docs/strata/functions/gen-random-uuid)[uuid

Return a random UUID v4, such as 7e7ea35f-f813-46ce-ac7b-12658c021bcb.

](https://oplema.com/docs/strata/functions/uuid)[uuidv4

Return a random UUID v4, such as 7e7ea35f-f813-46ce-ac7b-12658c021bcb.

](https://oplema.com/docs/strata/functions/uuidv4)[typeof

Return the name of an expression's data type.

](https://oplema.com/docs/strata/functions/typeof)

[Browse conversion & identifiers](https://oplema.com/docs/strata/functions#conversion-&-identifiers) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/utility.html#uuidv7)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
