pyspark.sql.Catalog.setCurrentCatalog

Catalog.setCurrentCatalog(catalogName: str) → None[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")