-
Notifications
You must be signed in to change notification settings - Fork 3.9k
ARROW-5824: [Gandiva][C++] Fix decimal null literals. #4780
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
Conversation
praveenbingo
commented
Jul 2, 2019
- Type was hard coded as 0,0
- Use the input type for literals instead.
- Type was hard coded as 0,0 - Use the input type for literals instead.
|
@pravindra can you please review, CI failures look unrelated. |
| return std::make_shared<LiteralNode>(data_type, LiteralHolder((int64_t)0), true); | ||
| case arrow::Type::DECIMAL: { | ||
| DecimalScalar128 literal(0, 0); | ||
| std::shared_ptr<arrow::DecimalType> decimal_type = |
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.
use checked_cast instead ?
auto decimal_type = arrow::internal::checked_pointer_cast<arrow::DecimalType>(data_type);
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.
done.
Codecov Report
@@ Coverage Diff @@
## master #4780 +/- ##
==========================================
+ Coverage 87.41% 89.08% +1.66%
==========================================
Files 996 719 -277
Lines 139489 100066 -39423
Branches 1418 0 -1418
==========================================
- Hits 121938 89145 -32793
+ Misses 17189 10921 -6268
+ Partials 362 0 -362
Continue to review full report at Codecov.
|
- Type was hard coded as 0,0 - Use the input type for literals instead. Author: Praveen <praveen@dremio.com> Closes #4780 from praveenbingo/ARROW-5824 and squashes the following commits: 2fa0eeb <Praveen> Address review comments. d56918c <Praveen> Fix lint issues. 41b1b0f <Praveen> ARROW-5824: Fix decimal null literals.
- Type was hard coded as 0,0 - Use the input type for literals instead. Author: Praveen <praveen@dremio.com> Closes #4780 from praveenbingo/ARROW-5824 and squashes the following commits: 2fa0eeb <Praveen> Address review comments. d56918c <Praveen> Fix lint issues. 41b1b0f <Praveen> ARROW-5824: Fix decimal null literals.