Skip to content

Throw IAE when dealing with odd-length/invalid hex string in Parquet CLI#3642

Open
nastra wants to merge 1 commit into
apache:masterfrom
nastra:invalid-hex-string
Open

Throw IAE when dealing with odd-length/invalid hex string in Parquet CLI#3642
nastra wants to merge 1 commit into
apache:masterfrom
nastra:invalid-hex-string

Conversation

@nastra

@nastra nastra commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

This avoids odd-length hex strings being passed, which cause IndexOutOfBoundsExceptions and instead throws IAE to make it clearer that hex string length must be even

What changes are included in this PR?

Are these changes tested?

added tests that reproduce the issue

Are there any user-facing changes?

no

@nastra

nastra commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

/cc @Fokko @wgtmac

@nastra nastra force-pushed the invalid-hex-string branch from a2376f4 to 550e560 Compare July 2, 2026 07:36
@nastra nastra changed the title Fix odd-length hex string in Parquet CLI Throw IAE when dealing with odd-length/invalid hex string in Parquet CLI Jul 2, 2026
@nastra nastra force-pushed the invalid-hex-string branch from 550e560 to 9d9994e Compare July 2, 2026 07:48
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