ARRAYS_ZIP (Lakehouse v2)
Combina várias matrizes numa matriz de estruturas.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.arrays_zip([1,2], ['a','b'])Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.arrays_zip([1, 2, 3], ['a', 'b', 'c'])
┌───────────────────────────┐│ [{1,'a'},{2,'b'},{3,'c'}] │└───────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”ARRAYS_ZIP([1,2], ['a','b'])Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT ARRAYS_ZIP([1, 2, 3], ['a', 'b', 'c']);
┌───────────────────────────────────────────────────┐│ [{"0":1,"1":"a"},{"0":2,"1":"b"},{"0":3,"1":"c"}] │└───────────────────────────────────────────────────┘