array_intersect
function
Applies to: Databricks SQL Databricks Runtime
Returns an array of the elements in the intersection of array1
and array2
.
Arguments
array1
: An ARRAY of any type with comparable elements.array2
: n ARRAY of elements sharing a least common type with the elements ofarray1
.