GitHub user yhuai opened a pull request:
https://github.com/apache/spark/pull/12798
[SPARK-15012][SQL] Simplify configuration API further
## What changes were proposed in this pull request?
1. Remove all the `spark.setConf` etc. Just expose `spark.conf`
2. Make `spark.conf` take in things set in the core `SparkConf` as well,
otherwise users may get confused
This was done for both the Python and Scala APIs.
## How was this patch tested?
`SQLConfSuite`, python tests.
This one fixes the failed tests in #12787
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yhuai/spark conf-api
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12798.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 #12798
----
commit 3fc36a3c35d2dba87bf4c7ab03fb7359b5cc30c0
Author: Andrew Or <[email protected]>
Date: 2016-04-29T20:32:43Z
Remove conf methods from SparkSession
commit 1c473ca46d54d858a4c2119485c01d24bb244e90
Author: Andrew Or <[email protected]>
Date: 2016-04-29T20:36:00Z
Make the same change in python
commit 7a5352fa03491f21bbbc79ecc91f65a61e39a025
Author: Andrew Or <[email protected]>
Date: 2016-04-29T21:02:10Z
Merge branch 'master' of github.com:apache/spark into conf-api
commit 2727ff52c8f1b104a3c78e0071d49b2299e4719f
Author: Andrew Or <[email protected]>
Date: 2016-04-29T21:45:57Z
Minor python change
commit 10155e6c9cac6d91566d719b67a27265835eae3f
Author: Andrew Or <[email protected]>
Date: 2016-04-29T22:06:40Z
Merge branch 'master' of github.com:apache/spark into conf-api
commit f8134ccb3731f2a96173a3786ac2996763d710aa
Author: Andrew Or <[email protected]>
Date: 2016-04-29T23:42:29Z
Merge branch 'master' of github.com:apache/spark into conf-api
commit 1e355d738612376e6d6a22cbb0598e13b3d7535f
Author: Yin Huai <[email protected]>
Date: 2016-04-30T02:04:57Z
Fix python tests
----
---
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]