adamreeve commented on issue #50314:
URL: https://github.com/apache/arrow/issues/50314#issuecomment-4887791275

   How do we choose the threshold for non-reasonable values? Maybe we can 
determine an upper bound from trusted information like the buffer size, rather 
than have to pick an arbitrary threshold. Eg. looking at the Rust 
implementation, they don't resize `mini_block_bit_widths` until reading them 
[here](https://github.com/apache/arrow-rs/blob/8205c5421f2f08c22c74be909beaf8afb2774011/parquet/src/encodings/decoding.rs#L608-L609)
 and then [throw an 
error](https://github.com/apache/arrow-rs/blob/8205c5421f2f08c22c74be909beaf8afb2774011/parquet/src/encodings/decoding.rs#L626-L628)
 if they fail to read the expected number of bit widths.


-- 
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]

Reply via email to