Skip to main content
array_flatten flattens one layer of nested arrays.

Syntax

Parameters

param: a nested array that needs to be flattened. Only nested arrays are supported, and it can be a multi-level nested array, the elements of the array can be any data type supported by the database.

Return value

The data type of the return value is an array type after flattening one layer.

Examples

Example 1: Flatten a 2-level nested array.
Example 2: Flatten a 3-level nested array.