current_schema
Returns the current database.
Syntax
Python
from pyspark.sql import functions as sf
sf.current_schema()
Examples
Example 1: Get current schema
Python
from pyspark.sql import functions as sf
spark.range(1).select(sf.current_schema()).show()
Output
+----------------+
|current_schema()|
+----------------+
| default|
+----------------+