Repository navigation
ORC-1475: [C++] ConvertColumnReader.TestConvertNumericToStringVariant fails when compiled with unsigned char - #1582
Conversation
) ### What changes were proposed in this pull request? Fix the failure of ConvertColumnReader.TestConvertNumericToStringVariant when char is unsigned. ### Why are the changes needed? The UT fails when compiled with unsigned char. ### How was this patch tested? The UT is passed when compiled both with and without the flag -funsigned-char.
|
Thanks @guiyanakuang for your review. This commit ports it into branch-1.9. |
|
Merged to branch-1.9, Thanks @wgtmac for making this pr. |
|
Hi, @wgtmac and @guiyanakuang . May I ask how to reproduce this bug in Docker testing? |
|
I created Milestone 1.9.2 and added this there for now. |
@dongjoon-hyun Simply add a |
|
@wgtmac My question was how to reproduce this bug in Docker testing because it was reported here via |
|
Let me ask on the original PR. |
|
What is your host cpu running the docker test? @mystic-lama gcc/clang uses signed-char by default on most platforms. But on ARM the default is unsigned-char. |
|
Oh, I posted #1579 (comment) without knowing your comment here. So, is it C++ compiler setting difference on |
|
You are right. I reproduced it on M1 Max. Previously, I ran Docker tests on old Intel Mac. So I missed that. Thank you, @wgtmac . |
What changes were proposed in this pull request?
Fix the failure of ConvertColumnReader.TestConvertNumericToStringVariant when char is unsigned.
Why are the changes needed?
The UT fails when compiled with unsigned char.
How was this patch tested?
The UT is passed when compiled both with and without the flag -funsigned-char.