GitHub user ravipesala opened a pull request:
https://github.com/apache/carbondata/pull/1481
[CARBONDATA-1576] Added create datamap parser and saved to schema file
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:
User can create datamap using the following syntax.
```
CREATE DATAMAP agg_sales
ON TABLE sales
USING "org.apache.carbondata.datamap.AggregateDataMapHandler"
DMPROPERTIES (
'KEYâ=âVALUEâ
) AS
SELECT order_time, count(user_id) FROM sales GROUP BY order_time
```
In the above syntax `DMPROPERTIES` and `AS QUERY` are optional.
- [X] Any interfaces changed?
NO
- [X] Any backward compatibility impacted?
NO
- [X] Document update required?
Yes, need to add new syntax to document
- [X] Testing done
Testcases are added
- [X] For large changes, please consider breaking it into sub-tasks under
an umbrella JIRA.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ravipesala/incubator-carbondata
datamap-parser1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/1481.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 #1481
----
commit 75faa7755fa3c493ea7cf9882187dca9425373b4
Author: ravipesala <[email protected]>
Date: 2017-11-10T10:48:17Z
Added create datamap parser and saved to schema file
----
---