Skip to content

[Parquet] Fix bss encoding and tests on big endian systems#663

Open
daniel-adam-tfs wants to merge 2 commits intoapache:mainfrom
daniel-adam-tfs:bugfix/fix-bss-and-tests-on-big-endian
Open

[Parquet] Fix bss encoding and tests on big endian systems#663
daniel-adam-tfs wants to merge 2 commits intoapache:mainfrom
daniel-adam-tfs:bugfix/fix-bss-and-tests-on-big-endian

Conversation

@daniel-adam-tfs
Copy link
Contributor

Rationale for this change

To ensure the Arrow and Parquet Go libraries work correctly on big-endian architectures.

What changes are included in this PR?

Added endianness-aware BYTE_STREAM_SPLIT decoding in the parquet/encoding package.
Fixed tests in the parquet package to handle byte order correctly on big-endian systems.

Are these changes tested?

Yes, all affected unit tests now pass on both little-endian and big-endian machines. The changes specifically address some of the previously failing tests on big-endian systems.

Are there any user-facing changes?

No user-facing API changes. The changes are internal and ensure correct behavior on supported architectures.

- Add platform-specific decodeByteStreamSplitBatchWidth{4,8}InByteOrder
  for little-endian and s390x big-endian architectures.
- Update ByteStreamSplitDecoder to use new endianness-aware decoding
  functions for correct behavior on all platforms.
…systems

Fix TestPageIndexRoundTripSuite and TestEncoding tests on big-endian systems
@daniel-adam-tfs daniel-adam-tfs changed the title [Parquet] fix bss and tests on big endian [Parquet] Fix bss encoding and tests on big endian systems Feb 13, 2026
@daniel-adam-tfs daniel-adam-tfs marked this pull request as ready for review February 13, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant