pyspark.sql.functions.
current_user
Returns the current database.
New in version 3.5.0.
Examples
>>> spark.range(1).select(current_user()).show() +--------------+ |current_user()| +--------------+ | ruifeng.zheng| +--------------+
previous
pyspark.sql.functions.current_schema
next
pyspark.sql.functions.input_file_block_length