QiangCai commented on a change in pull request #3585: [DOC] CarbonExtensions doc URL: https://github.com/apache/carbondata/pull/3585#discussion_r369349103
########## File path: docs/quick-start-guide.md ########## @@ -65,12 +65,62 @@ CarbonData can be integrated with Spark,Presto and Hive execution engines. The b #### Alluxio [CarbonData supports read and write with Alluxio](./alluxio-guide.md) +## Installing and Configuring CarbonData to run locally with Spark SQL + +To enable CarbonExtensions in spark, we need to add the following configuration. + +|Key|Value| +|---|---| +|spark.sql.extensions|org.apache.spark.sql.CarbonExtensions| + +Start Spark SQL CLI by running the following command in the Spark directory: + +``` +./bin/spark-sql --conf spark.sql.extensions=org.apache.spark.sql.CarbonExtensions --jars <carbondata assembly jar path> +``` +###### Creating a Table + +``` +CREATE TABLE IF NOT EXISTS test_table ( + id string, + name string, + city string, + age Int) +STORED AS carbondata; +``` Review comment: ok, I will list all syntax and the difference between SparkSession and CarbonSession. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
