SLICE (Lakehouse v1)
Extrai uma fatia do array pelo índice (base 1).
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.slice( <array>, <start>[, <end>] )Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.slice([1, 21, 32, 4], 2, 3)
┌──────────────────────────────────┐│ func.slice([1, 21, 32, 4], 2, 3) │├──────────────────────────────────┤│ [21,32] │└──────────────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”SLICE( <array>, <start>[, <end>] )Aliases
Seção intitulada “Aliases”Exemplos de SQL
Seção intitulada “Exemplos de 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] │└─────────────────────────────────────────────────────────────────┘