SLICE (Lakehouse v1)
Extrait une tranche du tableau à partir de ses indices (base 1).
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.slice( <array>, <start>[, <end>] )Exemples Analyze
Section intitulée « Exemples Analyze »func.slice([1, 21, 32, 4], 2, 3)
┌──────────────────────────────────┐│ func.slice([1, 21, 32, 4], 2, 3) │├──────────────────────────────────┤│ [21,32] │└──────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »SLICE( <array>, <start>[, <end>] )Exemples SQL
Section intitulée « Exemples SQL »SELECT ARRAY_SLICE([1, 21, 32, 4], 2, 3), SLICE([1, 21, 32, 4], 2, 3);
┌─────────────────────────────────────────────────────────────────┐│ array_slice([1, 21, 32, 4], 2, 3) │ slice([1, 21, 32, 4], 2, 3) │├───────────────────────────────────┼─────────────────────────────┤│ [21,32] │ [21,32] │└─────────────────────────────────────────────────────────────────┘