snowflake.snowpark.functions.collation¶
- snowflake.snowpark.functions.collation(e: Union[Column, str]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/functions.py#L3339-L3354)¶
Returns the collation specification of expr.
- Example::
>>> df = session.create_dataframe(['ñ'], schema=['v']) >>> df.select(collation(collate(df.v, 'sp-upper'))).show() ------------------------------------------- |"COLLATION(COLLATE(""V"", 'SP-UPPER'))" | ------------------------------------------- |sp-upper | -------------------------------------------