Repository navigation
GH-55861: [C++][Parquet] Write Arrow fixed-size binary arrays directly to Parquet encoders - #55862
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
What changed in this PR
This PR optimizes Parquet C++ writing of Arrow FixedSizeBinaryArray by avoiding intermediate FixedLenByteArray descriptor materialization, enabling direct use of Arrow arrays in min/max computation and bloom filter updates.
Changes:
- Implemented
TypedComparatorImpl::GetMinMax(const ::arrow::Array&)forFLBAand refactored shared min/max traversal logic. - Added
TypedBloomFilterWriter::Updatesupport forFLBA(FIXED_SIZE_BINARY). - Updated/extended tests to cover
FixedSizeBinarystatistics and bloom filter round-trips.
| File | Description |
|---|---|
| cpp/src/parquet/statistics_test.cc | Extends statistics tests to validate min/max and FLBA stats updates using Arrow FixedSizeBinaryArray. |
| cpp/src/parquet/statistics.cc | Adds Arrow-array-based GetMinMax support for FLBA and refactors common min/max traversal. |
| cpp/src/parquet/column_writer.cc | Routes fixed-size binary writing through a shared binary write path to avoid building FLBA descriptors. |
| cpp/src/parquet/bloom_filter_writer.cc | Implements bloom filter updates for FIXED_LEN_BYTE_ARRAY from Arrow fixed-size binary arrays; improves error message. |
| cpp/src/parquet/arrow/index_test.cc | Adds bloom filter round-trip coverage for fixed-size binary columns and fixes a redundant table construction. |
| cpp/src/parquet/arrow/arrow_statistics_test.cc | Adds Arrow statistics verification for fixed_size_binary columns. |
Review effort: Lite
Copilot stopped reviewing on behalf of
HuaHuaY due to an error
November 30, 2026 13:58
pitrou
approved these changes
Nov 30, 2026
wgtmac
reviewed
Dec 1, 2026
wgtmac
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The Parquet C++ writer builds a temporary array of
FixedLenByteArraydescriptors when writing an ArrowFixedSizeBinaryArray. The encoders already accept the Arrow array directly, so the writer can avoid building those descriptors.What changes are included in this PR?
Implemented
TypedComparatorImpl::GetMinMaxandTypedBloomFilterWriter::UpdateforFLBA.Are these changes tested?
Yes.
Are there any user-facing changes?
No.
Was AI used for this PR?
In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.
PR code and description written by:
Reviewed before submission by:
FLBAarray when writing fixed-size binary columns #55861