Skip to content

fix(parquet): make column reader cleanup idempotent#924

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/column-reader-close-idempotent
Open

fix(parquet): make column reader cleanup idempotent#924
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/column-reader-close-idempotent

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

Column chunk cleanup retained both the current page and page reader after Close, so repeated cleanup could release or close the same resources twice. Page-reader replacement also discarded close errors and installed the replacement anyway.

This change detaches resources before cleanup, makes Close idempotent, returns and retains replacement cleanup errors, and uses the checked replacement path from the Arrow reader before continuing to seek or read.

Tests:

  • go test ./parquet/file -run 'TestPrimitiveReaderSuite|TestColumnChunkReader'
  • go test ./parquet/... -run '^$'

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