ARRAY_CONSTRUCT_COMPACT
functionsupportedCore SQL functionsReturns an array constructed from zero, one, or more inputs; the constructed array omits any NULL input values.
Syntax
supportedpartialnot supportednot scored
ARRAY_CONSTRUCT_COMPACT( [ <expr1> ] [ , <expr2> [ , ... ] ] )
Parameters
| Name | Required | Description |
|---|---|---|
expr# | required | These are the input expressions to evaluate; the resulting values are put into the array. The expressions do not all need to evaluate to the same data type. |
Returns
The data type of the returned value is ARRAY.
Usage notes
- SQL NULL values are skipped when building the result array, resulting in a compacted (i.e. dense) array.