ARRAYS_ZIP (Lakehouse v1)
Combina várias matrizes numa única matriz de tuplos.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.arrays_zip( <array1> [, ...] )Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.arrays_zip([1, 2, 3], ['a', 'b', 'c'])
┌──────────────────────────────────────────────┐│ func.arrays_zip([1, 2, 3], ['a', 'b', 'c']) │├──────────────────────────────────────────────┤│ [(1,'a'),(2,'b'),(3,'c')] │└──────────────────────────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”ARRAYS_ZIP( <array1> [, ...] )Argumentos
Seção intitulada “Argumentos”| Argumentos | Descrição |
|---|---|
<arrayN> |
As matrizes (ARRAY) de entrada. |
Tipo de retorno
Seção intitulada “Tipo de retorno”Array(Tuple).
Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT ARRAYS_ZIP([1, 2, 3], ['a', 'b', 'c']);┌────────────────────────────────────────┐│ arrays_zip([1, 2, 3], ['a', 'b', 'c']) │├────────────────────────────────────────┤│ [(1,'a'),(2,'b'),(3,'c')] │└────────────────────────────────────────┘