ARRAY_DISTINCT (Lakehouse v2)
Removes duplicate elements from an array.
Analyze Syntax
Section titled “Analyze Syntax”func.array_distinct([1, 2, 2, 3, 3])Analyze Examples
Section titled “Analyze Examples”func.array_distinct([1, 2, 2, 3, 3])
┌─────────┐│ [1,2,3] │└─────────┘SQL Syntax
Section titled “SQL Syntax”ARRAY_DISTINCT([1, 2, 2, 3, 3])SQL Examples
Section titled “SQL Examples”SELECT ARRAY_DISTINCT([1, 2, 2, 3, 3]);
┌─────────┐│ [1,2,3] │└─────────┘