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

snowflake.snowpark.functions.right¶

snowflake.snowpark.functions.right(str_expr: ColumnOrName, length: Column | int) → Column[source]¶

Returns a right most substring of str_expr.

Example:

>>> df = session.create_dataframe([["abc"], ["def"]], schema=["a"])
>>> df.select(right(col("a"), 2).alias("result")).show()
------------
|"RESULT"  |
------------
|bc        |
|ef        |
------------
Copy