ZIP_WITH_INDEX
Combines multiple arrays by index into records
Syntax
Arguments
Name
Type
Description
Default Value
fieldNames
string
Optional comma separated field names
""
inputs#
any
Examples
fieldNames
inputs1
inputs2
inputs3
Output
null::string
array['a', 'b', 'c']
array[1, 2]
array[false, true, false]
[{index: 0, field_1: a
, field_2: 1, field_3: false}, {index: 1, field_1: b
, field_2: 2, field_3: true}, {index: 2, field_1: c
, field_2: null, field_3: false}]
Transformation job example
SQL
Query result
fieldNames
inputs1[]
inputs2[]
inputs3[]
Output
null::string
array['a', 'b', 'c']
array[1, 2]
array[false, true, false]
[{index: 0, field_1: a
, field_2: 1, field_3: false}, {index: 1, field_1: b
, field_2: 2, field_3: true}, {index: 2, field_1: c
, field_2: null, field_3: false}]
Last updated