ARRAY_SIZE

functionsupportedCore SQL functions

docs.snowflake.com ↗

Semi-structured and structured data functions

Returns the size of the input array. A variation of ARRAY_SIZE takes a VARIANT value as input. If the VARIANT value contains an array, the size of the array is returned; otherwise, NULL is returned if the value is not an array.

Syntax

ARRAY_SIZE( <array> )

ARRAY_SIZE( <variant> )

Returns

The data type of the returned value is INTEGER.

Usage notes