Skip to content

[GH-3587]: Fix parquet.thrift.string.size.limit validation#3588

Open
divjotarora wants to merge 1 commit into
apache:masterfrom
divjotarora:fix-thrift-max-message-size-negative-one-sentinel
Open

[GH-3587]: Fix parquet.thrift.string.size.limit validation#3588
divjotarora wants to merge 1 commit into
apache:masterfrom
divjotarora:fix-thrift-max-message-size-negative-one-sentinel

Conversation

@divjotarora
Copy link
Copy Markdown

Rationale for this change

This PR fixes a small bug in parquet.thrift.string.size.limit validation here. If this config is explicitly set to -1, the code indicates that the default max message size should be used, but also throws an exception.

What changes are included in this PR?

If parquet.thrift.string.size.limit == -1, use the default value and do not fail validation.

Are these changes tested?

Yes, there are new regression tests added to TestParquetFileReaderMaxMessageSize.

Are there any user-facing changes?

No.

Closes #GH-3587

Copy link
Copy Markdown
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

Great catch @divjotarora

@Fokko Fokko added this to the 1.18.0 milestone May 26, 2026
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.

2 participants