pyspark.sql.Catalog.setCurrentCatalog#

Catalog.setCurrentCatalog(catalogName)[source]#

Sets the current catalog in this session.

New in version 3.4.0.

Parameters
catalogNamestr

Name of the catalog to set.

Examples

>>> spark.catalog.setCurrentCatalog("spark_catalog")