GitHub user yhuai opened a pull request:
https://github.com/apache/spark/pull/13931
[SPARK-16224] [SQL] [PYSPARK] SparkSession builder's configs need to be set
to the existing Scala SparkContext's SparkConf
## What changes were proposed in this pull request?
When we create a SparkSession at the Python side, it is possible that a
SparkContext has been created. For this case, we need to set configs of the
SparkSession builder to the Scala SparkContext's SparkConf (we need to do so
because conf changes on a active Python SparkContext will not be propagated to
the JVM side). Otherwise, we may create a wrong SparkSession (e.g. Hive support
is not enabled even if enableHiveSupport is called).
## How was this patch tested?
New tests and manual tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yhuai/spark SPARK-16224
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13931.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #13931
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]