ARRAYS_ZIP (Lakehouse v2)
Merges multiple arrays into an array of structs.
Analyze Syntax
Section titled “Analyze Syntax”func.arrays_zip([1,2], ['a','b'])Analyze Examples
Section titled “Analyze Examples”func.arrays_zip([1, 2, 3], ['a', 'b', 'c'])
┌───────────────────────────┐│ [{1,'a'},{2,'b'},{3,'c'}] │└───────────────────────────┘SQL Syntax
Section titled “SQL Syntax”ARRAYS_ZIP([1,2], ['a','b'])SQL Examples
Section titled “SQL Examples”SELECT ARRAYS_ZIP([1, 2, 3], ['a', 'b', 'c']);
┌───────────────────────────────────────────────────┐│ [{"0":1,"1":"a"},{"0":2,"1":"b"},{"0":3,"1":"c"}] │└───────────────────────────────────────────────────┘