Supported in: Batch, Streaming
Reduces array elements using an expression.
Expression categories: Array
Type variable bounds: T accepts Array<Boolean | Byte | Date | Double | Float | Integer | Long | Map<AnyType, AnyType> | Short | String | Timestamp> | Boolean | Byte | Date | Double | Float | Integer | Long | Map<AnyType, AnyType> | Short | String | Timestamp
Output type: T
Argument values:
miles
accumulator
, element
],miles | Output |
---|---|
[ 12300, 12342 ] | 24642 |
Description: Return the first non null within the array. Argument values:
miles
accumulator
, element
],init
miles | init | Output |
---|---|---|
[ null, null, 12300, 12111 ] | null | 12300 |
Argument values:
miles
accumulator
, element
,miles | Output |
---|---|
[ 12300, 12342 ] | -12300-12342 |
Description: Null arrays will return null outputs. Argument values:
miles
accumulator
, element
],init
miles | init | Output |
---|---|---|
null | null | null |
Description: Empty array will return the initial value. Argument values:
miles
accumulator
, element
],miles | Output |
---|---|
[ ] | 0 |