catalogue actuel
Renvoie le catalogue actuel.
Syntaxe
Python
from pyspark.sql import functions as sf
sf.current_catalog()
Exemples
Exemple 1 : Obtenir le catalogue actuel
Python
from pyspark.sql import functions as sf
spark.range(1).select(sf.current_catalog()).show()
Output
+-----------------+
|current_catalog()|
+-----------------+
| spark_catalog|
+-----------------+