Supported in: Batch, Streaming
Filters an array based on the filter expression. Note, array index starts at 1.
Expression categories: Array
Type variable bounds: T accepts AnyType
Output type: Array<T>
Argument values:
array
element
,array | Output |
---|---|
[ 2, 5, null, 11 ] | [ 2, 5, 11 ] |
Argument values:
array
element
,array | Output |
---|---|
[ 2, 5, null, 11 ] | [ 2, 5 ] |
Argument values:
array
element
,array | Output |
---|---|
[ 2, 5, 7, 11, 12, 15 ] | [ 2, 5, 7 ] |
Description: Note that array index starts at 1. Argument values:
array
element
,elementIndex
,array | Output |
---|---|
[ 1, -1, -2, 4, -5 ] | [ 1, 4 ] |
Argument values:
array
element
,array | Output |
---|---|
[ hello world, hello, world ] | [ hello world, hello ] |
Argument values:
array
element
, 4],array | Output |
---|---|
[ 2, 5, 7, 11, 12, 15 ] | [ 2, 5 ] |
Argument values:
array
element
,array | Output |
---|---|
null | null |