Ma1oneZhang opened a new issue, #6091:
URL: https://github.com/apache/arrow-rs/issues/6091

   **Describe the bug**
   
   In the 52.1.0 release of the parquet crate, new APIs were introduced to 
retrieve the heap size of parquet metadata. However, a potential issue has been 
identified in the implementation that could lead to unexpected panics. The 
problem lies in the file 'parquet/src/file/meta/memory.rs', specifically 
between lines 168-178. In this section, the code invokes the 'min' function 
without first verifying the presence of a value in an Option type. This lack of 
validation before unwrapping could result in a panic if the Option is None.
   
   **To Reproduce**
   
   Construct a PageIndex<T> or ValueStatistics<T> without min/max value, and 
invoke the heapsize function.
   
   **Expected behavior**
   
   return current heap_size
   
   **Additional context**
   NONE


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