pyspark.sql.functions.current_catalog#

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

Returns the current catalog.

New in version 3.5.0.

Examples

>>> spark.range(1).select(current_catalog()).show()
+-----------------+
|current_catalog()|
+-----------------+
|    spark_catalog|
+-----------------+