ARRAY_COMPACT

functionsupportedCore SQL functions

docs.snowflake.com ↗

Semi-structured and structured data functions

Returns a compacted array with missing and null values removed, effectively converting sparse arrays into dense arrays.

Syntax

ARRAY_COMPACT( <array1> )

Parameters

NameRequiredDescription
array1requiredThe source array.

Usage notes