pyspark.sql.Catalog.currentCatalog#

Catalog.currentCatalog()[source]#

Returns the current catalog in this session.

New in version 3.4.0.

Returns
str

The current catalog name.

Examples

>>> spark.catalog.currentCatalog()
'spark_catalog'