arraysOverlap
This section contains reference documentation for the arraysOverlap function.
Returns true when two arrays of the same element type share at least one value.
Signature
ARRAYS_OVERLAP(array1, array2)
Pinot also accepts ARRAYSOVERLAP.
Supported Types
INT[]
BOOLEAN
LONG[]
BOOLEAN
FLOAT[]
BOOLEAN
DOUBLE[]
BOOLEAN
BIG_DECIMAL[]
BOOLEAN
STRING[]
BOOLEAN
BYTES[]
BOOLEAN
Both arguments must have the same array type.
Usage Examples
These examples are derived from Pinot's integration tests.
Returns true.
Returns false.
Returns all rows where longArrayCol shares at least one value with the filter array.
For a multi-value BYTES column, use SQL binary literals inside the array:
The stored column uses "dataType": "BYTES" and "singleValueField": false in the Pinot schema. Query response values are hexadecimal strings.
Last updated
Was this helpful?

