Skip to content

GH-3637: Fix corrupt output when reusing a dictionary writer across row groups after fallback#3638

Open
nastra wants to merge 2 commits into
apache:masterfrom
nastra:fallback-values-writer
Open

GH-3637: Fix corrupt output when reusing a dictionary writer across row groups after fallback#3638
nastra wants to merge 2 commits into
apache:masterfrom
nastra:fallback-values-writer

Conversation

@nastra

@nastra nastra commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

When using the FallbackValuesWriter, after a fallback, currentWriter is the fallback writer, so the initial dictionary writer is never reset at row-group boundaries, which can silently corrupt the next row group.

Closes #3637

What changes are included in this PR?

Are these changes tested?

added two tests that reproduce the issue and fail without the fix

Are there any user-facing changes?

no

@nastra

nastra commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

/cc @wgtmac @Fokko

@nastra nastra force-pushed the fallback-values-writer branch from b902b8e to 03b2e44 Compare July 1, 2026 08:53
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.

FallbackValuesWriter can corrupt row group when reusing dictionary writer

1 participant