[
https://issues.apache.org/jira/browse/SPARK-55658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jon Mio updated SPARK-55658:
----------------------------
Description:
SparkSessionBuilder.create API was recently added to PySpark classic. However,
there are a few minor improvements that can be made to the implementation
* [Mirror the getOrCreate
codepath|https://github.com/jonmio/spark/blob/master/python/pyspark/sql/session.py#L551-L561]
handling for existing and non-existing sesssion as much as possible to not
introduce new patterns
* Do not create a SparkConf when a session already exists since we can fetch
the SparkContext directly from the session
> SparkSessionBuilder.create in PySpark classic should mirror getOrCreate path
> as much as possible
> ------------------------------------------------------------------------------------------------
>
> Key: SPARK-55658
> URL: https://issues.apache.org/jira/browse/SPARK-55658
> Project: Spark
> Issue Type: Improvement
> Components: PySpark
> Affects Versions: 4.2.0
> Reporter: Jon Mio
> Priority: Minor
>
> SparkSessionBuilder.create API was recently added to PySpark classic.
> However, there are a few minor improvements that can be made to the
> implementation
> * [Mirror the getOrCreate
> codepath|https://github.com/jonmio/spark/blob/master/python/pyspark/sql/session.py#L551-L561]
> handling for existing and non-existing sesssion as much as possible to not
> introduce new patterns
> * Do not create a SparkConf when a session already exists since we can fetch
> the SparkContext directly from the session
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]