ARRAY_UNIQUE_AGG (Lakehouse v2)
将值聚合为由不同值组成的数组。
Analyze 语法
Section titled “Analyze 语法”func.array_unique_agg(get_column(table, 'tag'))Analyze 示例
Section titled “Analyze 示例”func.array_unique_agg(get_column(table, 'tag'))
┌───────────────┐│ ['a','b','c'] │└───────────────┘SQL 语法
Section titled “SQL 语法”ARRAY_UNIQUE_AGG(<tag>)SQL 示例
Section titled “SQL 示例”SELECT ARRAY_UNIQUE_AGG(tag) FROM tags;
┌───────────────┐│ ["a","b","c"] │└───────────────┘