NULL values within arrays as known values, as shown in the following examples.
If any of the input argument arrays are themselves NULL, the function returns NULL.
Syntax
Parameters
Return Type
ARRAY of the common type of all input arrays.
The common type is the supertype of the provided array types. For example, the supertype between Array(Int) and Array(BigInt) is Array(BigInt).
Examples
In the following example, the only element shared between all three arrays is the1:
Rows: 1Execution time: 4.91ms
Rows: 1Execution time: 6.91ms
ARRAY_SORT is used to ensure the results are in ascending order:
Rows: 1Execution time: 6.10ms
NULL can appear in the intersection, only if it appears in all the argument arrays:
Rows: 1Execution time: 5.32ms
Rows: 1Execution time: 7.59ms
Rows: 1Execution time: 5.62ms