ARRAY_UNIQUE (Lakehouse v1)
Counts unique elements in the array (except NULL).
Analyze Syntax
Section titled “Analyze Syntax”func.array_unique( <array> )Analyze Examples
Section titled “Analyze Examples”func.array_unique([1, 2, 3, 3, 4])
┌─────────────────────────────────────┐│ func.array_unique([1, 2, 3, 3, 4]) │├─────────────────────────────────────┤│ 4 │└─────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”ARRAY_UNIQUE( <array> )SQL Examples
Section titled “SQL Examples”SELECT ARRAY_UNIQUE([1, 2, 3, 3, 4]);
┌───────────────────────────────┐│ array_unique([1, 2, 3, 3, 4]) │├───────────────────────────────┤│ 4 │└───────────────────────────────┘