Teilen über


current_catalog

Diese Funktion gibt den aktuellen Katalog zurück.

Syntax

from pyspark.sql import functions as sf

sf.current_catalog()

Examples

Beispiel 1: Abrufen des aktuellen Katalogs

from pyspark.sql import functions as sf
spark.range(1).select(sf.current_catalog()).show()
+-----------------+
|current_catalog()|
+-----------------+
|    spark_catalog|
+-----------------+