MAP_FROM_ARRAYS (Lakehouse v2)
Creates a map from an array of keys and an array of values.
Analyze Syntax
Section titled “Analyze Syntax”func.map_from_arrays(['a','b'], [1, 2])Analyze Examples
Section titled “Analyze Examples”func.map_from_arrays(['a', 'b', 'c'], [1, 2, 3])
┌─────────────────────┐│ {'a':1,'b':2,'c':3} │└─────────────────────┘SQL Syntax
Section titled “SQL Syntax”MAP_FROM_ARRAYS(['a','b'], [1, 2])SQL Examples
Section titled “SQL Examples”SELECT MAP_FROM_ARRAYS(['a', 'b', 'c'], [1, 2, 3]);
┌─────────────────────┐│ {"a":1,"b":2,"c":3} │└─────────────────────┘