Udostępnij przez


current_catalog

Zwraca bieżący wykaz.

Składnia

from pyspark.sql import functions as sf

sf.current_catalog()

Przykłady

Przykład 1. Pobieranie bieżącego wykazu

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