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
ORC-1315:[C++] Fix byte to integer conversions fail on platforms with unsigned char type #1323
Conversation
… unsigned char 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.
Thank you for making a PR, @luffy-zh . BTW, according to the JIRA, do we need this at Apache ORC 1.8.1?
cc @wgtmac , @stiga-huang , @williamhyun .
I believe we need to port to 1.8.1. @dongjoon-hyun |
Got it. Thanks, @wgtmac . |
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, LGTM.
Hi, @wgtmac . Is there a reason why this is not backported to
And, do we need 2 patches to be complete for ORC-1315?
|
Sorry, I was confused. I found your comment, #1318 (comment)
I'll change the milestone of this PR. |
…ith unsigned char type This closes apache#1323
What changes were proposed in this pull request?
This patch adds static_cast for the char type cast in RLE/ColumnReader.
Why are the changes needed?
For the context of ORC-1315, this patch fixes signed char to unsigned char conversions fail where char is by default unsigned.
How was this patch tested?
No new tests were added.