pyspark.sql.functions.current_path#
- pyspark.sql.functions.current_path()[source]#
Returns the current SQL path as a comma-separated list of qualified schema names.
New in version 4.2.0.
See also
Examples
>>> import pyspark.sql.functions as sf >>> spark.range(1).select(sf.current_path()).show() +----------------------------------------------------+ | current_path()| +----------------------------------------------------+ |system.builtin,system.session,spark_catalog.default | +----------------------------------------------------+