ARRAY_SLICE (Lakehouse v2)
Returns a slice of an array from a start position with a given length.
Analyze Syntax
Section titled “Analyze Syntax”func.array_slice([1,2,3,4,5], 2, 3)Analyze Examples
Section titled “Analyze Examples”func.array_slice([1, 2, 3, 4, 5], 2, 3)
┌─────────┐│ [2,3,4] │└─────────┘SQL Syntax
Section titled “SQL Syntax”ARRAY_SLICE([1,2,3,4,5], 2, 3)SQL Examples
Section titled “SQL Examples”SELECT ARRAY_SLICE([1, 2, 3, 4, 5], 2, 3);
┌─────────┐│ [2,3,4] │└─────────┘