> For the complete documentation index, see [llms.txt](https://docs.pinot.apache.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pinot.apache.org/functions/array/arraylength.md).
# ARRAYLENGTH
Returns the length of a multi-value column or array expression. Pinot also accepts the alias `CARDINALITY`.
## Supported Types
`ARRAYLENGTH` supports arrays of `INT`, `LONG`, `FLOAT`, `DOUBLE`, `BIG_DECIMAL`, `STRING`, and `BYTES`.
## Signature
> ARRAYLENGTH('colName')
## Usage Examples
These examples are based on the [Hybrid Quick Start](/start-here/quick-start.md#hybrid).
```sql
select ARRAYLENGTH(RandomAirports) AS length, count(*)
from airlineStats
GROUP BY length
ORDER BY count(*) DESC
LIMIT 5
```
| length | count(\*) |
| ------ | --------- |
| 1 | 5382 |
| 37 | 267 |
| 33 | 223 |
| 17 | 166 |
| 22 | 160 |
{% hint style="info" %}
The `count(*)` values will increase each time we execute the query as data is constantly being ingested by the Hybrid Quick Start.
{% endhint %}
---
# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.
## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:
```
GET https://docs.pinot.apache.org/functions/array/arraylength.md?ask=