For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Array Type
Return Type

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.

Last updated

Was this helpful?