MAP_FROM_ARRAYS (Lakehouse v2)
Cria um mapa a partir de uma matriz de chaves e de uma matriz de valores.
Sintaxe de Analyze
Seção intitulada “Sintaxe de Analyze”func.map_from_arrays(['a','b'], [1, 2])Exemplos de Analyze
Seção intitulada “Exemplos de Analyze”func.map_from_arrays(['a', 'b', 'c'], [1, 2, 3])
┌─────────────────────┐│ {'a':1,'b':2,'c':3} │└─────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”MAP_FROM_ARRAYS(['a','b'], [1, 2])Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT MAP_FROM_ARRAYS(['a', 'b', 'c'], [1, 2, 3]);
┌─────────────────────┐│ {"a":1,"b":2,"c":3} │└─────────────────────┘