Getting Started
User Guide
API Reference
Development
Migration Guide
Spark SQL
Core Classes
Spark Session
Configuration
Input/Output
DataFrame
Column
Data Types
Row
Functions
Window
Grouping
Catalog
Observation
Avro
Pandas API on Spark
Structured Streaming
MLlib (DataFrame-based)
Spark Streaming
MLlib (RDD-based)
Spark Core
Resource Management
pyspark.sql.Catalog.currentDatabase
¶
Catalog.
currentDatabase
(
)
→ str
[source]
¶
Returns the current default database in this session.
New in version 2.0.
pyspark.sql.Catalog.createTable
pyspark.sql.Catalog.databaseExists