Supported in: Batch, Streaming
Maps each element of an array using an expression. Note, array index starts at 1.
Expression categories: Array
Type variable bounds: T accepts AnyType
Output type: Array<T>
Argument values:
flight_number
element
,flight_number | Output |
---|---|
[ XB-134, MT-111 ] | [ XB, MT ] |
Argument values:
miles
previous_miles
, element
],miles | previous_miles | Output |
---|---|---|
[ 12300, 12342 ] | 10000 | [ 22300, 22342 ] |
Description: Add the index to the array element. Note the index starts at 1. Argument values:
array
elementIndex
, element
],array | Output |
---|---|
[ 1, 1, 1 ] | [ 2, 3, 4 ] |
Argument values:
miles
element
,miles | Output |
---|---|
[ 12300, 12342 ] | [ 12300, 12342 ] |
Description: Getting the struct element from an array of structs. Argument values:
raw_data
element
,raw_data | Output |
---|---|
[ { miles: 22300, tail_number: XB-112, }, { miles: 22342, tail_number: XB-112, } ] | [ 22300, 22342 ] |
Description: Getting the struct element from an array of structs. Argument values:
raw_data
key
,element
,raw_data | Output |
---|---|
[ { miles -> 22300, tail_number -> XB-112, }, { miles -> 22342L, tail_number -> XB-112, } ] | [ { MILES -> 22300, TAIL_NUMBER -> XB-112, }, { MILES -> 22342L, TAIL_NUMBER -> XB-112, } ] |