ARRAY_CONSTRUCT_STRUCTURED

functionsupportedCore SQL functions

docs.snowflake.com ↗

Semi-structured and structured data functions

Returns a structured ARRAY constructed from one or more inputs, where the element type is the common type of the inputs. Unlike ARRAY_CONSTRUCT, which returns a semi-structured ARRAY, this function returns a structured ARRAY(<type>) value.

Syntax

supportedpartialnot supportednot scored

ARRAY_CONSTRUCT_STRUCTURED( <expr1> [ , <expr2> [ , ... ] ] )

Parameters

NameRequiredDescription
expr#requiredThe input expressions to evaluate; the resulting values become the elements of the array. All of the input expressions are cast to a single, common element type.

Returns

Returns a structured ARRAY, ARRAY(<type>). The element type is the common type that all of the input expressions are cast to. If any input can be NULL, the element type is nullable.

Usage notes

See also

Referenced by