GitHub user BJangir opened a pull request:
https://github.com/apache/carbondata/pull/1807
[CARBONDATA-2030]avg with Aggregate table for double data type is failed.
avg with Aggregate table for double data type is failed.
Root Cause:- for avg column , agg table returns sum and count , sum col.
data type is based on actual data type of the column but for count col. always
LongType .so while doing divide by it is failed in spark layer
Solution :- Change the return datatype for count also . use the same
datatype sum column .
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:
- [ ] Any interfaces changed?
NA
- [ ] Any backward compatibility impacted?
NA
- [ ] Document update required? NA
- [ ] Testing done=Done
Added UT.
- [ ] 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/BJangir/incubator-carbondata CARBONDATA-2030
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/1807.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 #1807
----
commit c34dbe766c8878ece0aee5d9d2de9b06bac85f96
Author: BJangir <babulaljangir111@...>
Date: 2018-01-15T17:05:54Z
avg with Aggregate table for double data type is failed.
----
---