array_size
function
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
Related
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for