GitHub user jackylk reopened a pull request:
https://github.com/apache/carbondata/pull/1988 [CARBONDATA-2193] Support register analyzer and optimizer rules for MVDataMap
This PR is based on #1987
User can register analyzer and optimizer rules when creating CarbonSession, for example:
```
val spark = SparkSession
.builder()
.config(conf)
.master(TestQueryExecutor.masterUrl)
.appName("Spark2TestQueryExecutor")
.enableHiveSupport()
.enableMVDataMap(new PreaggregateMVDataMapRules)
.getOrCreateCarbonSession()
```
- [ ] Any interfaces changed?
- [ ] Any backward compatibility impacted?
- [ ] Document update required?
- [ ] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.
- [ ] 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/jackylk/incubator-carbondata datamap-query-olapdatamap
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/1988.patchTo close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1988
----
commit fa67d1b72c9ceb3f7a6707f8f31335c1937d77a1
Author: Jacky Li <jacky.likun@...>
Date: 2018-02-20T17:10:57Z
support datamap rules register
fix compile
commit de5e073a4acb18f131574464dbc522e752e2ed6e
Author: Jacky Li <jacky.likun@...>
Date: 2018-02-27T03:40:38Z
fix test
commit 8a291f7f9ab22ea7b6a283cc3b33b78266abfd5f
Author: Jacky Li <jacky.likun@...>
Date: 2018-02-27T16:49:38Z
fix comment
commit 520608fa032e6a574931b115ae1f517d24b2ed52
Author: Jacky Li <jacky.likun@...>
Date: 2018-02-28T14:50:06Z
fix comment
----
---