-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
ARROW-5964: [C++][Gandiva] Remove overflow check after rounding in BasicDecimal128::FromDouble #4894
Conversation
pravindra
commented
Jul 17, 2019
- std::round can round down also.
- also, there is a check further down for overflow (2^127-1).
- std::round can round down also. - also, there is a check further down for overflow (2^127-1).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question, otherwise LGTM.
(note: Travis-CI failure is unrelated)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1. Will need to wait for green CI...
I updated the PR title to add missing context about what this patch is |
Codecov Report
@@ Coverage Diff @@
## master #4894 +/- ##
==========================================
+ Coverage 87.43% 89.05% +1.61%
==========================================
Files 995 718 -277
Lines 140466 100330 -40136
Branches 1418 0 -1418
==========================================
- Hits 122821 89351 -33470
+ Misses 17283 10979 -6304
+ Partials 362 0 -362
Continue to review full report at Codecov.
|
…sicDecimal128::FromDouble - std::round can round down also. - also, there is a check further down for overflow (2^127-1). Author: Pindikura Ravindra <ravindra@dremio.com> Closes apache#4894 from pravindra/arrow-5964 and squashes the following commits: 8d6f37a <Pindikura Ravindra> fix tests eaee1ab <Pindikura Ravindra> ARROW-5964: remove overflow check after rounding
…sicDecimal128::FromDouble - std::round can round down also. - also, there is a check further down for overflow (2^127-1). Author: Pindikura Ravindra <ravindra@dremio.com> Closes #4894 from pravindra/arrow-5964 and squashes the following commits: 8d6f37a <Pindikura Ravindra> fix tests eaee1ab <Pindikura Ravindra> ARROW-5964: remove overflow check after rounding
…sicDecimal128::FromDouble - std::round can round down also. - also, there is a check further down for overflow (2^127-1). Author: Pindikura Ravindra <ravindra@dremio.com> Closes apache#4894 from pravindra/arrow-5964 and squashes the following commits: 8d6f37a <Pindikura Ravindra> fix tests eaee1ab <Pindikura Ravindra> ARROW-5964: remove overflow check after rounding