Skip to content

fix(parquet/file): reject records starting with nonzero repetition levels#1009

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/parquet-invalid-record-repetition-level
Open

fix(parquet/file): reject records starting with nonzero repetition levels#1009
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/parquet-invalid-record-repetition-level

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

Rationale for this change

A repeated column must start each logical record at repetition level zero. The record reader currently accepts a nonzero first repetition level and silently treats it as part of a record, which can miscount record boundaries.

What changes are included in this PR?

  • Return an error when record delimiting begins on a nonzero repetition level.
  • Propagate that error through ReadRecordData.
  • Add a focused test that also verifies the invalid level is not consumed.

Are these changes tested?

Yes. The focused parquet/file test passes.

@fallintoplace
fallintoplace requested a review from zeroshade as a code owner July 25, 2026 15:59
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