ARRAY_SLICE (Lakehouse v2)
Renvoie une tranche d’un tableau à partir d’une position de départ et sur une longueur donnée.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.array_slice([1,2,3,4,5], 2, 3)Exemples Analyze
Section intitulée « Exemples Analyze »func.array_slice([1, 2, 3, 4, 5], 2, 3)
┌─────────┐│ [2,3,4] │└─────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »ARRAY_SLICE([1,2,3,4,5], 2, 3)Exemples SQL
Section intitulée « Exemples SQL »SELECT ARRAY_SLICE([1, 2, 3, 4, 5], 2, 3);
┌─────────┐│ [2,3,4] │└─────────┘