Create an empty array

Supported in: Batch, Streaming

Returns an empty array of the given type.

Expression categories: Array

Declared arguments

  • Type - The element type of the array to create.
    Type<T>

Type variable bounds: T accepts AnyType

Output type: Array<T>

Examples

Example 1: Base case

Argument values:

  • Type: Array<String>

Output: [ ]


Example 2: Base case

Argument values:

  • Type: Map<String, String>

Output: [ ]


Example 3: Base case

Argument values:

  • Type: String

Output: [ ]


Example 4: Base case

Argument values:

  • Type: Struct<string, array<String>>

Output: [ ]