ARRAY_UNIQUE_AGG (Lakehouse v2)
Aggregates values into an array of distinct values.
Analyze Syntax
Section titled “Analyze Syntax”func.array_unique_agg(get_column(table, 'tag'))Analyze Examples
Section titled “Analyze Examples”func.array_unique_agg(get_column(table, 'tag'))
┌───────────────┐│ ['a','b','c'] │└───────────────┘SQL Syntax
Section titled “SQL Syntax”ARRAY_UNIQUE_AGG(<tag>)SQL Examples
Section titled “SQL Examples”SELECT ARRAY_UNIQUE_AGG(tag) FROM tags;
┌───────────────┐│ ["a","b","c"] │└───────────────┘