跳转至

Create an empty array(创建空数组(Create an empty array))

Supported in: Batch, Faster, Streaming

Returns an empty array of the given type.

Expression categories: Array

Declared arguments

  • Type: The element type of the array to create.
    Type\

Type variable bounds: T accepts AnyType

Output type: Array\

Examples

Example 1: Base case

Argument values:

  • Type: Array\

Output: [ ]


Example 2: Base case

Argument values:

  • Type: Map\

Output: [ ]


Example 3: Base case

Argument values:

  • Type: String

Output: [ ]


Example 4: Base case

Argument values:

  • Type: Struct\>

Output: [ ]



中文翻译


创建空数组(Create an empty array)

支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)

返回指定类型的空数组。

表达式类别: 数组(Array)

声明的参数

  • 类型(Type): 要创建的数组的元素类型。
    类型\

类型变量约束: T 接受任意类型(AnyType)

输出类型: 数组\

示例

示例 1:基础情况

参数值:

  • 类型: 数组\<字符串>

输出: [ ]


示例 2:基础情况

参数值:

  • 类型: 映射\<字符串, 字符串>

输出: [ ]


示例 3:基础情况

参数值:

  • 类型: 字符串

输出: [ ]


示例 4:基础情况

参数值:

  • 类型: 结构体\<string:字符串, array:数组\<字符串>>

输出: [ ]