Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

ajantha-bhat
Copy link
Member

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

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1559/

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1770/

@CarbonDataQA
Copy link

Build Success with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9817/

@ajantha-bhat ajantha-bhat changed the title [CARBONDATA-3136] JVM crash with preaggregate datamap when average of decimal column is taken with orderby. [CARBONDATA-3136] Fix JVM crash with preaggregate datamap when average of decimal column is taken with orderby. Nov 27, 2018
@ravipesala
Copy link
Contributor

LGTM

@asfgit asfgit closed this in afe2b66 Nov 28, 2018
asfgit pushed a commit that referenced this pull request Nov 30, 2018
…e 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.

This closes #2958
qiuchenjian pushed a commit to qiuchenjian/carbondata that referenced this pull request Jun 14, 2019
…e 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.

This closes apache#2958
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants