ARRAY_DISTINCT (Lakehouse v1)
Removes all duplicates and NULLs from the array without preserving the original order.
Analyze Syntax
Section titled “Analyze Syntax”func.array_distinct( <array> )Analyze Examples
Section titled “Analyze Examples”func.array_distinct([1, 2, 2, 4, 3])
┌───────────────────────────────────────┐│ func.array_distinct([1, 2, 2, 4, 3]) │├───────────────────────────────────────┤│ [1,2,4,3] │└───────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”ARRAY_DISTINCT( <array> )SQL Examples
Section titled “SQL Examples”SELECT ARRAY_DISTINCT([1, 2, 2, 4, 3]);
┌─────────────────────────────────┐│ array_distinct([1, 2, 2, 4, 3]) │├─────────────────────────────────┤│ [1,2,4,3] │└─────────────────────────────────┘