---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/function-ref/ARRAY
  - ru/function-ref/ARRAY
  - href: en/function-ref/ARRAY.md
    type: text/markdown
    title: Markdown version
csp:
  - script-src:
      - https://mc.yandex.ru
    img-src:
      - https://mc.yandex.ru
    connect-src:
      - https://mc.yandex.ru
      - wss://mc.yandex.ru
    child-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-ancestors:
      - 'blob:'
      - https://mc.yandex.ru
canonical: en/function-ref/ARRAY.html
editable: false
vcsPath: en/function-ref/ARRAY.md
---

# ARRAY



#### Syntax {#syntax}


```
ARRAY( value_1, value_2, value_3 [ , ... ] )
```

#### Description {#description}
Returns an array containing the passed values.

**Argument types:**
- `value_1` — `Fractional number | Integer | String`
- `value_2` — `Fractional number | Integer | String`
- `value_3` — `Fractional number | Integer | String`


**Return type**: Depends on argument types

{% note info %}

All passed values must be of the same type or `NULL`. At least one value must be non-`NULL`.

{% endnote %}


#### Examples {#examples}

```
ARRAY(1, 2, NULL, 3)
```

```
ARRAY('a', 'b', NULL, 'c')
```

```
ARRAY(0, 2.3, NULL, 0.18)
```


#### Data source support {#data-source-support}

`ClickHouse 21.8`, `Files`, `Google Sheets`, `PostgreSQL 9.3`, `Trino`, `Yandex Documents`.
