PySpark referenceClassesSparkSessionnewSessionOn this pagenewSession 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 Pythonspark.newSession()