Repository navigation
fix(java): read a partial Parquet row range from files without an Offset Index - #982
Merged
SemyonSinchenko merged 1 commit intoNov 26, 2026
Conversation
SemyonSinchenko
approved these changes
Oct 14, 2026
SemyonSinchenko
left a comment
Member
There was a problem hiding this comment.
~LGTM overall. I left a minor comment. +linting fail
Member
|
Sorry for the delay @keksmd |
…set Index Parquet files written by Arrow C++ 9.0, including the canonical testing/ldbc_sample edge chunks, carry no Offset Index. A row range that covered only part of such a row group failed with "refusing JVM fallback", so GraphAr adjacency ranges could not be read from them at all. A partly selected row group without an Offset Index for a read column is now read whole and sliced to the half-open range; row groups outside the range are still skipped, so memory stays bounded to the touched row groups. The read reports ROW_RANGE as declined in that case and as applied otherwise, and returns the same rows either way, as the io-api read contract requires. Rejected: keep refusing - breaks reading canonical C++-written fixtures Rejected: report applied for row-group pruning - rows are sliced in the JVM Directive: ROW_RANGE stays applied only when every partly touched row group is read through its Offset Index
keksmd
force-pushed
the
java-parquet-range-without-offset-index
branch
from
November 12, 2026 19:23
fb458f4 to
450c732
Compare
3 of 4 tasks
Member
|
@keksmd should I merge this one? |
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.
Reason for this PR
Closes #981. Parquet files without an Offset Index, including the Arrow C++ edge chunks in
testing/ldbc_sample, could not be read by a partial row range.What changes are included in this PR?
readFilteredRowGroup.ROW_RANGEis reported as applied only when every partly touched row group was read through its Offset Index, and as declined otherwise. The rows returned are identical either way.Are these changes tested?
Yes.
ParquetPhysicalReaderWithoutOffsetIndexTestreads a canonicalldbc_sampleedge chunk that has no Offset Index (range, projection and limit). It also compares a multi-row-group file with an Offset Index against the same file with the page indexes stripped: the rows are identical and only the applied/declined sets differ.mvn -pl io-parquet -am clean verify: io-parquet 15 tests, io-api 85, 0 failures.Are there any user-facing changes?
Reads that used to throw now succeed and report
ROW_RANGEas declined. No API change.Checklist
make cpplintbefore submitting when changed files are in thecppdirectory.pre-commit runbefore commit the changed files.