diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-05-31 17:40:44 -0700 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2016-05-31 17:40:44 -0700 |
commit | 85d6b0db9f5bd425c36482ffcb1c3b9fd0fcdb31 (patch) | |
tree | 2e09a7e6c626ec965d86b31fd3b64207be766349 /repl/scala-2.10 | |
parent | 93e97147eb499dde1e54e07ba113eebcbe25508a (diff) | |
download | spark-85d6b0db9f5bd425c36482ffcb1c3b9fd0fcdb31.tar.gz spark-85d6b0db9f5bd425c36482ffcb1c3b9fd0fcdb31.tar.bz2 spark-85d6b0db9f5bd425c36482ffcb1c3b9fd0fcdb31.zip |
[SPARK-15618][SQL][MLLIB] Use SparkSession.builder.sparkContext if applicable.
## What changes were proposed in this pull request?
This PR changes function `SparkSession.builder.sparkContext(..)` from **private[sql]** into **private[spark]**, and uses it if applicable like the followings.
```
- val spark = SparkSession.builder().config(sc.getConf).getOrCreate()
+ val spark = SparkSession.builder().sparkContext(sc).getOrCreate()
```
## How was this patch tested?
Pass the existing Jenkins tests.
Author: Dongjoon Hyun <dongjoon@apache.org>
Closes #13365 from dongjoon-hyun/SPARK-15618.
Diffstat (limited to 'repl/scala-2.10')
0 files changed, 0 insertions, 0 deletions