Skip to content

GH-3587: Test Util -1 max message size sentinel - #3800

Open
sankalpsthakur wants to merge 1 commit into
apache:masterfrom
sankalpsthakur:cursor/gh-3587-thrift-minus-one-1e52
Open

sankalpsthakur wants to merge 1 commit into
apache:masterfrom
sankalpsthakur:cursor/gh-3587-thrift-minus-one-1e52

Conversation

@sankalpsthakur

Copy link
Copy Markdown

Rationale for this change

#3587 reports that parquet.thrift.string.size.limit = -1 (the documented “use default”) was rejected as a non-positive value. The validation fix landed in #3588, but that PR used Closes #GH-3587, so GitHub never linked or closed the issue.

This change pins the -1 sentinel at the Util read path (the original throw site) and documents it on the public API.

What changes are included in this PR?

  • Document that Util.readFileMetaData(InputStream, int) treats -1 as the default 100 MB limit.
  • Add unit tests: -1 succeeds, 0 and other negatives still fail.

Are these changes tested?

Yes.

  • parquet-format-structures TestUtil: Tests run: 5, Failures: 0
  • parquet-hadoop TestParquetFileReaderMaxMessageSize: Tests run: 6, Failures: 0

Are there any user-facing changes?

Javadoc only. No format or behavior change relative to current master.

Contributor: Sankalp Thakur (sankalpsthakur). Apache ICLA note: this contribution is offered under the Apache License 2.0; please confirm ICLA status against ASF records if required for merge.

Closes #3587

The validation fix is already on master; GitHub issue 3587 stayed open
because apache#3588 used Closes #apacheGH-3587. Cover the -1 default at the Util
read path and document the public sentinel.

Co-authored-by: Sankalp Thakur <sankalpsthakur@users.noreply.github.com>
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.

Setting parquet.thrift.string.size.limit = -1 incorrectly throws

3 participants