Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Nov 01, 2024
Send us feedback
array_distinct
Applies to: Databricks SQL Databricks Runtime
Removes duplicate values from array.
array
array_distinct(array)
array: An ARRAY expression.
The function returns an array of the same type as the input argument where all duplicate values have been removed.
> SELECT array_distinct(array(1, 2, 3, NULL, 3)); [1,2,3,NULL]
array_except function
array_intersect function
array_sort function
array_remove function
array_union function