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] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L3653-L3666)

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.

语言: 中文