Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Nov 20, 2024
Send us feedback
array_size
Applies to: Databricks SQL Databricks Runtime
Returns the number of elements in array.
array
array_size(array)
array: An ARRAY expression.
An INTEGER.
> SELECT array_size(array(1, NULL, 3, NULL)); 4 > SELECT array_size(array()); 0
array function
element_at function