nxcals.api.extraction.data.builders.SparkSession.active

classmethod SparkSession.active() SparkSession

Returns the active or default SparkSession for the current thread, returned by the builder.

New in version 3.5.0.

Returns:

Spark session if an active or default session exists for the current thread.

Return type:

SparkSession