Skip to content

fix(parquet): propagate row-group and page-index write errors#921

Open
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/parquet-writer-error-propagation
Open

fix(parquet): propagate row-group and page-index write errors#921
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/parquet-writer-error-propagation

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

Row-group transitions and footer flushes used to discard close and page-index errors, which could leave a truncated file that still appeared to write successfully.

This change adds checked row-group APIs, preserves legacy panic behavior for the no-error APIs, persists writer failures so a later footer cannot be written, returns Arrow Parquet row-group errors, and checks buffered metadata serialization and short writes.

Tests:

  • go test ./parquet/file -run 'Test(AppendRowGroupCheckedPropagatesCloseError|BufferedRowGroupPropagatesShortWrite|FlushWithFooterPropagatesPageIndexWriteError|NewParquetWriterWithError|PqarrowNewFileWriter)'
  • go test ./parquet/... -run '^$'

@fallintoplace fallintoplace requested a review from zeroshade as a code owner July 11, 2026 07:31
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