Skip to content

GH-3659: 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

GH-3659: 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

Closes #3659

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
@nastra nastra force-pushed the invalid-hex-string branch from 9d9994e to 3c82a61 Compare July 3, 2026 12:42

@wgtmac wgtmac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a Github issue for this?

@nastra nastra changed the title Throw IAE when dealing with odd-length/invalid hex string in Parquet CLI GH-3659: Throw IAE when dealing with odd-length/invalid hex string in Parquet CLI Jul 13, 2026
@nastra

nastra commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Do we need a Github issue for this?

@wgtmac thanks for the review. I've opened #3659

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.

Throw IAE for odd-length hex strings in Parquet CLI

2 participants