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