ARRAY_SLICE

Returns a slice of an array from a start position with a given length.

Analyze Syntax

func.array_slice([1,2,3,4,5], 2, 3)

Analyze Examples

func.array_slice([1, 2, 3, 4, 5], 2, 3)

┌─────────┐
 [2,3,4] 
└─────────┘

SQL Syntax

ARRAY_SLICE([1,2,3,4,5], 2, 3)

SQL Examples

SELECT ARRAY_SLICE([1, 2, 3, 4, 5], 2, 3);

┌─────────┐
 [2,3,4] 
└─────────┘