Skip to main content

newSession

Returns a new SparkSession as a new session, that has separate SQL configuration, registered temporary views, and UDFs, but shares the SparkContext and table cache.

Syntax​

newSession()

Returns​

SparkSession

Examples​

Python
spark.newSession()