DISTINCT_MAP_KEYS (Lakehouse v2)
返回映射中不重复的键。
Analyze 语法
Section titled “Analyze 语法”func.distinct_map_keys(get_column(table, 'map_col'))Analyze 示例
Section titled “Analyze 示例”func.distinct_map_keys(get_column(table, 'tags'))
┌───────────────┐│ ['a','b','c'] │└───────────────┘SQL 语法
Section titled “SQL 语法”DISTINCT_MAP_KEYS(<map_col>)SQL 示例
Section titled “SQL 示例”SELECT DISTINCT_MAP_KEYS(MAP{'a':1, 'b':2, 'c':3});
┌───────────────┐│ ["a","b","c"] │└───────────────┘