Catalog.
setCurrentDatabase
Sets the current default database in this session.
New in version 2.0.0.
Examples
>>> spark.catalog.setCurrentDatabase("default")