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_numberelement,| flight_number | Output | 
|---|---|
| [ XB-134, MT-111 ] | [ XB, MT ] | 
Argument values:
milesprevious_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:
arrayelementIndex, element],| array | Output | 
|---|---|
| [ 1, 1, 1 ] | [ 2, 3, 4 ] | 
Argument values:
mileselement,| miles | Output | 
|---|---|
| [ 12300, 12342 ] | [ 12300, 12342 ] | 
Description: Getting the struct element from an array of structs. Argument values:
raw_dataelement,| 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_datakey,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, } ] |