Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the current default database in this session.
Syntax
setCurrentDatabase(dbName: str)
Parameters
| Parameter | Type | Description |
|---|---|---|
dbName |
str | Name of the database to set as the current default. |
Examples
spark.catalog.setCurrentDatabase("default")