Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Atualizado 20/12/2024
Send us feedback
array_union
Applies to: Databricks SQL Databricks Runtime
Returns an array of the elements in the union of array1 and array2 without duplicates.
array1
array2
array_union(array1, array2)
array1: An ARRAY.
array2: An ARRAY of the same type as array1.
An ARRAY of the same type as array.
array
> SELECT array_union(array(1, 2, 2, 3), array(1, 3, 5)); [1,2,3,5]
array_compact function
array_distinct function
array_intersect function
array_except function
array_sort function
array_remove function
zip_with function