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:
arrayelement,| array | Output |
|---|---|
| [ 2, 5, null, 11 ] | [ 2, 5, 11 ] |
Argument values:
arrayelement,| array | Output |
|---|---|
| [ 2, 5, null, 11 ] | [ 2, 5 ] |
Argument values:
arrayelement,| array | Output |
|---|---|
| [ 2, 5, 7, 11, 12, 15 ] | [ 2, 5, 7 ] |
Description: Note that array index starts at 1. Argument values:
arrayelement,elementIndex,| array | Output |
|---|---|
| [ 1, -1, -2, 4, -5 ] | [ 1, 4 ] |
Argument values:
arrayelement,| array | Output |
|---|---|
| [ hello world, hello, world ] | [ hello world, hello ] |
Argument values:
arrayelement, 4],| array | Output |
|---|---|
| [ 2, 5, 7, 11, 12, 15 ] | [ 2, 5 ] |
Argument values:
arrayelement,| array | Output |
|---|---|
| null | null |