Skip to content

Reject out-of-range UINT8 and UINT16 values in GroupWriter - #4000

Open
ishu7w wants to merge 1 commit into
apache:masterfrom
ishu7w:validate-example-unsigned-integers
Open

ishu7w wants to merge 1 commit into
apache:masterfrom
ishu7w:validate-example-unsigned-integers

Conversation

@ishu7w

@ishu7w ishu7w commented Nov 27, 2026

Copy link
Copy Markdown

Fixes #3142.

The example writer accepted negative and overflowing UINT8 and UINT16 values, which are outside the logical type's valid range. Validate these values before sending them to the record consumer, including in nested groups. UINT32 and UINT64 retain their full-width physical bit patterns.

The regression failed on upstream before the fix. All four focused tests and all 1,314 parquet-column tests passed after the fix. Spotless passed.

AI assistance: OpenAI Codex assisted with implementation, tests, and this description.

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.

ExampleParquetWriter may write illegal values for uint_8 and uint_16

1 participant