Share via


current_catalog

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|
+-----------------+