4210e2a6b7
## 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> 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() ``` Adding () to the builder method in SparkSession. ## How was this patch tested? ``` scala> SparkSession.builder().master("local").appName("Word Count").getOrCreate() res0: org.apache.spark.sql.SparkSession = org.apache.spark.sql.SparkSession65c17e38 scala> SparkSession.builder.master("local").appName("Word Count").getOrCreate() res1: org.apache.spark.sql.SparkSession = org.apache.spark.sql.SparkSession65c17e38 ``` Author: Tejas Patil <tejasp@fb.com> Closes #13086 from tejasapatil/doc_correction. |
||
---|---|---|
.. | ||
java/org/apache/spark/sql | ||
resources | ||
scala/org/apache/spark/sql |