Join array

Supported in: Batch, Streaming

Joins array with specified separator.

Expression categories: Array

Declared arguments

  • Array to join - no description
    Expression<Array<String>>
  • Separator - no description
    Expression<String>

Output type: String

Examples

Example 1: Base case

Argument values:

  • Array to join: [ hello, world ]
  • Separator: -

Output: hello-world


Example 2: Base case

Argument values:

  • Array to join: [ hello, world ]
  • Separator:

Output: hello
world


Example 3: Null case

Argument values:

  • Array to join: array
  • Separator: separator
arrayseparatorOutput
[ hello, world ]nullhelloworld
null-null
nullnullnull