PySpark referenceClassesCatalogsetCurrentDatabaseOn this pagesetCurrentDatabase Sets the current default database in this session. Syntax setCurrentDatabase(dbName: str) Parameters ParameterTypeDescriptiondbNamestrName of the database to set as the current default. Examples Pythonspark.catalog.setCurrentDatabase("default")