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.
Returns the current catalog.
Syntax
from pyspark.sql import functions as sf
sf.current_catalog()
Examples
Example 1: Get current catalog
from pyspark.sql import functions as sf
spark.range(1).select(sf.current_catalog()).show()
+-----------------+
|current_catalog()|
+-----------------+
| spark_catalog|
+-----------------+