Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Databricks SQL
Databricks Runtime
Returns the number of elements in array
.
Syntax
array_size(array)
Arguments
array
: An ARRAY expression.
Returns
An INTEGER.
Examples
> SELECT array_size(array(1, NULL, 3, NULL));
4
> SELECT array_size(array());
0