tustvold opened a new issue #1034:
URL: https://github.com/apache/arrow-rs/issues/1034


   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   `StructArrayReader` currently always computes repetition and definition 
level buffers, along with a null bitmask - see 
[here](https://github.com/apache/arrow-rs/blob/e0abda2c178be0c38d4257d22de2e4a3bfafde82/parquet/src/arrow/array_reader.rs#L1152).
 In the case where the struct array is not nullable, and has no nullable or 
repeated parents, this is redundant. The bitmask will be all `true`, and no 
parent array reader is going to consult the levels buffers. This situation will 
arise in the common case of a flat schema.
   
   **Describe the solution you'd like**
   
   Skip the definition and repetition level logic in the case where the 
definition level and repetition level of the struct is 0.
   
   **Describe alternatives you've considered**
   
   The logic could remain the same
   


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