---
title: "array_value function in Strata | Oplema"
description: "Create a fixed-size ARRAY from the values you pass in, such as three numbers. Write it as array_value(1, 2, 3) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/array-value"
updated: "2026-11-04"
---

# array\_value

Creates an ARRAY containing the argument values.

## Try an expression

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

### Expression

```
array_value(1.0::FLOAT, 2.0::FLOAT, 3.0::FLOAT)
```

### Result

```
'[1.0, 2.0, 3.0]'
```

The expression returns `FLOAT[3]`. Formula stores it as `VARCHAR` in this example. To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | \[1.0, 2.0, 3.0\] |

## Arguments and types

```
array_value(...)
```

Supported signatures (1)

```
array_value(...: ANY) → ARRAY
```

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

## Things to know

### With a missing first argument

```
array_value(NULL::FLOAT, 2.0::FLOAT, 3.0::FLOAT)
```

'\[NULL, 2.0, 3.0\]'

## Related functions

[list\_value

Create a list from its arguments.

](https://oplema.com/docs/strata/functions/list-value)[array\_cosine\_distance

Computes the cosine distance between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments.

](https://oplema.com/docs/strata/functions/array-cosine-distance)[array\_cosine\_similarity

Computes the cosine similarity between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments.

](https://oplema.com/docs/strata/functions/array-cosine-similarity)[array\_cross\_product

Computes the cross product of two arrays of size 3. The array elements can not be NULL.

](https://oplema.com/docs/strata/functions/array-cross-product)

[Browse lists & arrays](https://oplema.com/docs/strata/functions#lists-&-arrays) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/array.html#array_valuearg)

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