snowflake.snowpark.functions.array_slice¶
- snowflake.snowpark.functions.array_slice(array: Column | str, from_: Column | str, to: Column | str) Column[source]¶
Returns an ARRAY constructed from a specified subset of elements of the input ARRAY.
- Parameters:
array – Column containing the source ARRAY.
from – Column containing a position in the source ARRAY. The position of the first element is 0. Elements from positions less than this parameter are not included in the resulting ARRAY.
to – Column containing a position in the source ARRAY. Elements from positions equal to or greater than this parameter are not included in the resulting array.
- Example::