ARRAYS_OVERLAP

All functions > ARRAY > ARRAYS_OVERLAP

Returns true if any elements are common between the two arrays.

Syntax

ARRAYS_OVERLAP(array1: ARRAY<T>, array2: ARRAY<T>) → BOOLEAN
sql

Type Parameters:

  • T: Any type

Arguments

ParameterTypeRequiredDescription
array1ARRAY<T>YesFirst array to check
array2ARRAY<T>YesSecond array to check

Returns

BOOLEAN - true if arrays share at least one element, false otherwise

Notes

  • Returns true if arrays have any common elements
  • Returns false if arrays have no common elements
  • Empty arrays return false
  • Uses element equality comparison
Last update at: 2025/10/13 10:23:46