Skip to main content

setCurrentCatalog

Sets the current default catalog in this session.

Syntax

setCurrentCatalog(catalogName: str)

Parameters

Parameter

Type

Description

catalogName

str

Name of the catalog to set.

Examples

Python
spark.catalog.setCurrentCatalog("spark_catalog")