ARRAYS_ZIP (Lakehouse v1)
Fusionne plusieurs tableaux en un seul tableau de tuples.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.arrays_zip( <array1> [, ...] )Exemples Analyze
Section intitulée « Exemples 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')] │└──────────────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »ARRAYS_ZIP( <array1> [, ...] )Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
<arrayN> |
Les ARRAY d’entrée. |
Type de retour
Section intitulée « Type de retour »Array(Tuple).
Exemples SQL
Section intitulée « Exemples SQL »SELECT ARRAYS_ZIP([1, 2, 3], ['a', 'b', 'c']);┌────────────────────────────────────────┐│ arrays_zip([1, 2, 3], ['a', 'b', 'c']) │├────────────────────────────────────────┤│ [(1,'a'),(2,'b'),(3,'c')] │└────────────────────────────────────────┘