Amazon Redshift will no longer support the use of Python UDFs after June 30, 2026.
We will start enforcing it in phases. For more information on the details of Python end of life
and migration options, see the
blog post
ARRAY_FLATTEN function
Merges multiple arrays into a single array of SUPER type. Elements from the first inner array appear first, followed by elements from subsequent inner arrays. NULLs are treated as known objects.
Syntax
ARRAY_FLATTEN( array )
Arguments
- array
-
A SUPER expression of array form.
Return type
The ARRAY_FLATTEN function returns a SUPER type.
Example
The following example shows the ARRAY_FLATTEN function.
SELECT ARRAY_FLATTEN(ARRAY(ARRAY(1,2,3,4),ARRAY(5,6,7,8),ARRAY(9,10))); array_flatten ------------------------ [1,2,3,4,5,6,7,8,9,10] (1 row)