Skip to content

GH-55688: [C++][Parquet] Wait for record boundary before dictionary fallback - #55690

Open
ryanvickr wants to merge 1 commit into
apache:mainfrom
ryanvickr:gh-55688-dict-fallback-record-boundary
Open

ryanvickr wants to merge 1 commit into
apache:mainfrom
ryanvickr:gh-55688-dict-fallback-record-boundary

Conversation

@ryanvickr

Copy link
Copy Markdown

Rationale for this change

On repeated columns, dictionary size checks currently run even when a write chunk ends mid-record. If that triggers fallback while V2 data pages or page indexes are enabled, flushing buffered pages splits a record across a page boundary.

What changes are included in this PR?

Only check the dictionary size limit when the current write chunk ends on a record boundary, matching the existing data page size check.

Are these changes tested?

Yes, added a unit test that overflows the dictionary mid-record on a repeated column with V2 pages and verifies every data page starts on a record boundary.

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.

Used AI to help draft the regression test.

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant