GitHub user ajantha-bhat opened a pull request:

    https://github.com/apache/carbondata/pull/2958

    [CARBONDATA-3136] JVM crash with preaggregate datamap when average of 
decimal column is taken with orderby.  

    problem:  JVM crash with preaggregate datamap when average of decimal 
column is taken with orderby.  
    
    cause: When preparing plan with preaggregate datamap, decimal is cast to 
double in average expression. This was leading to JVM crash in spark as we were 
filling with wrong precision (callstack mentioned in JIRA) 
    
    solution: division result of average, should be casted to decimal instead 
of double for decimal datatype.
    
    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.   
           yes, added UT       
    
     - [ ] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA.  NA
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ajantha-bhat/carbondata issue_fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/2958.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 #2958
    
----
commit 8d95838e5d5991d7c355944d40a54972ea1c1424
Author: ajantha-bhat <ajanthabhat@...>
Date:   2018-11-27T14:07:49Z

    jvm crash when query pre-aggreagte table with avg(decimal_column) and order 
by

----


---

Reply via email to