pyspark.sql.functions.current_catalog#

pyspark.sql.functions.current_catalog()[source]#

Returns the current catalog.

New in version 3.5.0.

Examples

>>> import pyspark.sql.functions as sf
>>> spark.range(1).select(sf.current_catalog()).show()
+-----------------+
|current_catalog()|
+-----------------+
|    spark_catalog|
+-----------------+