Catalog.
setCurrentDatabase
Sets the current default database in this session.
New in version 2.0.0.
Examples
>>> spark.catalog.setCurrentDatabase("default")
previous
pyspark.sql.Catalog.setCurrentCatalog
next
pyspark.sql.Catalog.tableExists