GitHub user kumarvishal09 opened a pull request:
https://github.com/apache/carbondata/pull/1671
[CARBONDATA-1901]Fixed Pre aggregate data map creation and query parsing
*Problem:*Fixed below issues in case of pre aggregate
1. Pre aggregate data map table column order is not as per query given by
user because of which while data is loaded to wrong column
2. when aggregate function contains any expression query is failing with
match error
3. pre aggregate data map columns and parent tables columns encoder is not
matching
Solution:
1. Do not consider group columns in pre aggregate
2. when aggregate function contains any expression hit the maintable
3. Get encoder from main table and add in pre aggregate table column
When aggregation type is sum or avg create measure column
- [ ] Any interfaces changed?
No
- [ ] Any backward compatibility impacted?
No
- [ ] Document update required?
No
- [ ] Testing done
Added UT for all the scenario
- [ ] 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/kumarvishal09/incubator-carbondata
master_13-12
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/1671.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 #1671
----
commit d24e9bcd7878b72f8fcad4b1100d03ef5c4299e2
Author: kumarvishal <[email protected]>
Date: 2017-12-14T10:37:11Z
Fixed aggregate issue
----
---