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

snowflake.snowpark.Column.substr

Column.substr(start_pos: Column | int, length: Column | int) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/column.py#L582-L595)

Returns a substring of this string column.

Parameters:
  • start_pos – The starting position of the substring. Please note that the first character has position 1 instead of 0 in Snowflake database.

  • length – The length of the substring.

substring() is an alias of substr().

Language: English