chenliang613 commented on a change in pull request #4197:
URL: https://github.com/apache/carbondata/pull/4197#discussion_r684607950



##########
File path: docs/quick-start-guide.md
##########
@@ -161,12 +161,23 @@ Start Spark shell by running the following command in the 
Spark directory:
 ```
 ./bin/spark-shell --conf 
spark.sql.extensions=org.apache.spark.sql.CarbonExtensions --jars <carbondata 
assembly jar path>
 ```
+
+In this shell, SparkSession is readily available as `spark` and Spark context 
is readily available as `sc`.
+
+In order to create a SparkSession we will have to configure it explicitly in 
the following manner :
+
+* Import the following :
+
+```
+import org.apache.spark.sql.SparkSession
+```
+
 **NOTE** 
  - In this flow, we can use the built-in SparkSession `spark` instead of 
`carbon`.
    We also can create a new SparkSession instead of the built-in SparkSession 
`spark` if need. 
    It need to add "org.apache.spark.sql.CarbonExtensions" into spark 
configuration "spark.sql.extensions". 
    ```
-   SparkSession newSpark = SparkSession
+   val newSpark : SparkSession = SparkSession

Review comment:
       why need to change like this ?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@carbondata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to