DISTINCT_MAP_KEYS (Lakehouse v2)
Devolve as chaves distintas de um mapa.
Sintaxe de Analyze
Seção intitulada “Sintaxe de Analyze”func.distinct_map_keys(get_column(table, 'map_col'))Exemplos de Analyze
Seção intitulada “Exemplos de Analyze”func.distinct_map_keys(get_column(table, 'tags'))
┌───────────────┐│ ['a','b','c'] │└───────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”DISTINCT_MAP_KEYS(<map_col>)Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT DISTINCT_MAP_KEYS(MAP{'a':1, 'b':2, 'c':3});
┌───────────────┐│ ["a","b","c"] │└───────────────┘