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

snowflake.snowpark.functions.collation

snowflake.snowpark.functions.collation(e: Union[Column, str]) Column[source]

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                                 |
-------------------------------------------
Copy