MAP_FROM_ARRAYS (Lakehouse v2)
Crée un map à partir d’un tableau de clés et d’un tableau de valeurs.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.map_from_arrays(['a','b'], [1, 2])Exemples Analyze
Section intitulée « Exemples Analyze »func.map_from_arrays(['a', 'b', 'c'], [1, 2, 3])
┌─────────────────────┐│ {'a':1,'b':2,'c':3} │└─────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »MAP_FROM_ARRAYS(['a','b'], [1, 2])Exemples SQL
Section intitulée « Exemples SQL »SELECT MAP_FROM_ARRAYS(['a', 'b', 'c'], [1, 2, 3]);
┌─────────────────────┐│ {"a":1,"b":2,"c":3} │└─────────────────────┘