Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Returns the collation name of a given column.
For the corresponding Databricks SQL function, see collation function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.collation(col=<col>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
Target string column to work on. |
Returns
pyspark.sql.Column: collation name of a given expression.
Examples
df = spark.createDataFrame([('name',)], ['dt'])
df.select(collation('dt').alias('collation')).show(truncate=False)