divjotarora opened a new issue, #3587:
URL: https://github.com/apache/parquet-java/issues/3587

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   https://github.com/apache/parquet-java/pull/3359 added a 
`parquet.thrift.string.size.limit` configuration to allow specifying a custom 
max Thrift message size. If unspecified or explicitly set to -1, the default 
(100 MB) is used. The config validation code introduced a minor bug 
[here](https://github.com/apache/parquet-java/blob/8931c1c55f1fba399dd75139f75bcde0b84137c0/parquet-format-structures/src/main/java/org/apache/parquet/format/Util.java#L420):
 if the value is explicitly set to -1, `maxMessageSize` is correctly set to the 
default, but the `configuredMaxMessageSize <= 0` branch will still throw an 
exception.
   
   ### Component(s)
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to