GitHub user tejasapatil opened a pull request:
https://github.com/apache/spark/pull/13086
[TRIVIAL][Doc] SparkSession class doc example correction
## What changes were proposed in this pull request?
Was trying out `SparkSession` for the first time and the given class doc
(when copied as is) did not work over Spark shell:
```
scala> import org.apache.spark.sql._
import org.apache.spark.sql._
scala> SparkSession.builder().master("local").appName("Word
Count").getOrCreate()
<console>:27: error: org.apache.spark.sql.SparkSession.Builder does not
take parameters
SparkSession.builder().master("local").appName("Word
Count").getOrCreate()
```
PS: I am using latest master
## How was this patch tested?
```
scala> SparkSession.builder.master("local").appName("Word
Count").getOrCreate()
res0: org.apache.spark.sql.SparkSession =
org.apache.spark.sql.SparkSession@c3719e5
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tejasapatil/spark doc_correction
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13086.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 #13086
----
commit 5678bb91d006e58a9ac163330bc72058d3d3cce5
Author: Tejas Patil <[email protected]>
Date: 2016-05-13T00:02:44Z
SparkSession class doc correction
----
---
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]