You are viewing documentation about an older version (1.3.0). View latest version

snowflake.snowpark.functions.array_slice

snowflake.snowpark.functions.array_slice(array: ColumnOrName, from_: ColumnOrName, to: ColumnOrName) 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.