Applies to: Databricks SQL Databricks Runtime
Returns a subset of an array.
expr: An ARRAY expression.
start: An INTEGER expression.
length: An INTEGER expression that is greater or equal to 0.
The result is of the type of
The function subsets array
expr starting from index
start (array indices start at 1), or starting from the end if
start is negative, with the specified
If the requested array slice does not overlap with the actual length of the array, an empty array is returned.