SparkSession.Active Method

Definition

Returns the currently active SparkSession, otherwise the default one. If there is no default SparkSession, throws an exception.

[Microsoft.Spark.Since("2.4.0")]
public static Microsoft.Spark.Sql.SparkSession Active ();
[<Microsoft.Spark.Since("2.4.0")>]
static member Active : unit -> Microsoft.Spark.Sql.SparkSession
Public Shared Function Active () As SparkSession

Returns

SparkSession object

Attributes

Applies to