pyspark.sql.Catalog.setCurrentCatalog#

Catalog.setCurrentCatalog(catalogName)[source]#

Sets the current default catalog in this session.

New in version 3.4.0.

Parameters
catalogNamestr

name of the catalog to set

Examples

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