snowflake.snowpark.functions.right

snowflake.snowpark.functions.right(str_expr: Union[Column, str], length: Union[Column, int]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L3018-L3034)

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
语言: 中文