GH-48194: [C++][Parquet] Fix arrow-bit-utility-test failure on s390x #48195
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rationale for this change
This PR is intended to enable Parquet DB support on Big-endian (s390x) systems. The fix in this PR fixes "arrow-bit-utility-test" testcase failure.
The "arrow-bit-utility-test" testcase was failing with 1 Test case Failure on Big-endian platforms.
[ FAILED ] 1 test, listed below:
[ FAILED ] BitStreamUtil.ZigZag
What changes are included in this PR?
The fix includes changes to "bit_stream_utils_internal.h" file to address the Abort/Core dump issues.
Are these changes tested?
Yes. The changes are tested on s390x arch to make sure things are working fine. The fix is also tested on x86 arch, to make sure there is no new regression introduced.
Are there any user-facing changes?
No
GitHub main Issue link: [C++][Parquet] Enable Parquet DB support on Big Endian (IBM Z) systems #48151
GitHub Issue: [C++][Parquet] Fix arrow-bit-utility-test failure on Big-Endian (s390x) systems #48194