Create array(创建数组(Create array))¶
Supported in: Batch, Faster, Streaming
Creates an array from the columns provided.
Expression categories: Array
Declared arguments¶
- Expressions: A list of expressions to create arrays from.
List\>
Type variable bounds: T accepts AnyType
Output type: Array\
Examples¶
Example 1: Base case¶
Argument values:
- Expressions: [1, 2, 3]
Output: [ 1, 2, 3 ]
Example 2: Base case¶
Argument values:
- Expressions: [[ 1 ], [ 2 ]]
Output: [ [ 1 ], [ 2 ] ]
Example 3: Null case¶
Argument values:
- Expressions: [1, null, 3]
Output: [ 1, null, 3 ]
中文翻译¶
创建数组(Create array)¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
根据提供的列创建数组。
表达式类别: 数组(Array)
声明的参数¶
- 表达式(Expressions): 用于创建数组的表达式列表。
列表\<表达式\>
类型变量约束: T 接受任意类型(AnyType)
输出类型: 数组\
示例¶
示例 1:基础情况¶
参数值:
- 表达式: [1, 2, 3]
输出: [ 1, 2, 3 ]
示例 2:基础情况¶
参数值:
- 表达式: [[ 1 ], [ 2 ]]
输出: [ [ 1 ], [ 2 ] ]
示例 3:空值情况¶
参数值:
- 表达式: [1, null, 3]
输出: [ 1, null, 3 ]