Skip to content

_check_spark_session

Internal helper
This page documents an internal implementation helper, not a primary public API.

Check whether a Spark session is available.

Source code in src/fabricops_kit/config.py
781
782
783
784
785
786
def _check_spark_session() -> tuple[bool, str]:
    """Check whether a Spark session is available."""
    spark_obj = globals().get("spark")
    if spark_obj is not None:
        return True, "Spark session is available."
    return False, "Spark session not found; local fallback mode."