GitHub user ravipesala opened a pull request:
https://github.com/apache/incubator-carbondata/pull/448
[WIP] Added CarbonSession and enabled parser to use carbon custom commands
This PR added CarbonSession and uses additional parser to parse the
commands which are not supported by original Spark parser.
How to create CarbonSession?
```
// First import the implicits like below
import org.apache.spark.sql.CarbonSession._
val spark = SparkSession
.builder()
.master("local")
.enableHiveSupport()
.getOrCreateCarbonSession()
// Use getOrCreateCarbonSession to create the CarbonSession
```
It enables to support the `CREATE`, `LOAD`, `DROP`, `ALTER COMPACT` etc
custom commands.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ravipesala/incubator-carbondata session
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-carbondata/pull/448.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 #448
----
commit 96805ad57c8b4b04ea579edccf1c1a1f5b12be6d
Author: ravipesala <[email protected]>
Date: 2016-12-19T13:27:11Z
Initial commit
commit b5a3035de852243cc41b3c867909feb587c81d4d
Author: ravipesala <[email protected]>
Date: 2016-12-19T16:53:46Z
Added comments
commit eb7e3c8045459bdebefdea600d7dfd972d87dcb4
Author: ravipesala <[email protected]>
Date: 2016-12-19T18:43:09Z
Fixed style and testcases
----
---
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.
---