หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Returns the ASCII character having the binary equivalent to col. If col is larger than 256 the result is equivalent to char(col % 256).
For the corresponding Databricks SQL function, see char function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.char(col=<col>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
Input column or strings |
Examples
from pyspark.databricks.sql import functions as dbf
spark.range(1).select(dbf.char(dbf.lit(65))).show()
+--------+
|char(65)|
+--------+
| A|
+--------+