GitHub user rxin opened a pull request:
https://github.com/apache/spark/pull/12830
[SPARK-15052][SQL] Use builder pattern to create SparkSession
## What changes were proposed in this pull request?
This patch creates a builder pattern for creating SparkSession. The new
code is unused and mostly deadcode. I'm putting it up here for feedback.
There are a few TODOs that can be done as follow-up pull requests:
- [ ] Update tests to use this
- [ ] Update examples to use this
- [ ] Disable the old constructor so the only way to start a SparkSession
is through this builder pattern
## How was this patch tested?
Part of the future pull request is to clean this up and switch existing
tests to use this.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rxin/spark sparksession-builder
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12830.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 #12830
----
commit 0e969ec3fc88a7a4d84cc1e975364ec89cfb788f
Author: Reynold Xin <[email protected]>
Date: 2016-05-02T03:44:31Z
[SPARK-15052][SQL] Use builder pattern to create SparkSession
----
---
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]