หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Returns the current database.
Syntax
from pyspark.sql import functions as sf
sf.current_user()
Examples
Example 1: Get current user
from pyspark.sql import functions as sf
spark.range(1).select(sf.current_user()).show()
+--------------+
|current_user()|
+--------------+
| ruifeng.zheng|
+--------------+