Creates an array from a comma-separated list of values.
Syntax
1ARRAY[<element1>, <element2>, ..., <elementN>]
Arguments
Required
<element1>, <element2>, ..., <elementN>: Values to include in the array. All elements must be of compatible types that can be coerced to a common element type.
Returns
Returns an ARRAY that contains the specified elements. Data 360 SQL automatically infers the array type from the provided elements.
Considerations
All array elements must be of compatible types.
Elements can be literals, column references, or expressions.
Empty arrays can be created with ARRAY[].
Arrays can contain NULL values.
Type coercion applies when elements are of different but compatible types.
If no null values are in the constructor, Data 360 SQL infers the element type as not null.