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

snowflake.snowpark.functions.collation

snowflake.snowpark.functions.collation(e: ColumnOrName) 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