pyspark.sql.Catalog.setCurrentDatabase

Catalog.setCurrentDatabase(dbName: str) → None[source]

Sets the current default database in this session.

New in version 2.0.0.

Examples

>>> spark.catalog.setCurrentDatabase("default")