pyspark.sql.Catalog.currentCatalog

Catalog.currentCatalog() → str[source]

Returns the current default catalog in this session.

New in version 3.4.0.

Examples

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