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