---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/function-ref/LEN_ARRAY
  - ru/function-ref/LEN_ARRAY
  - href: en/function-ref/LEN_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/LEN_ARRAY.html
editable: false
vcsPath: en/function-ref/LEN_ARRAY.md
---

# LEN (array)

_Function `LEN` is also found in the following categories: [String functions](LEN.md)._

#### Syntax {#syntax}


```
LEN( value )
```

#### Description {#description}
Returns the number of the `value` items.

**Argument types:**
- `value` — `Array of fractional numbers | Array of integers | Array of strings`


**Return type**: `Integer`

#### Examples {#examples}

```
LEN(ARRAY(1, 2, 3)) = 3
```

```
LEN(ARRAY('a', 'b', NULL, 'c')) = 4
```


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

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