tustvold commented on code in PR #2027:
URL: https://github.com/apache/arrow-rs/pull/2027#discussion_r916839371


##########
parquet/src/arrow/array_reader/list_array.rs:
##########
@@ -124,7 +124,7 @@ impl<OffsetSize: OffsetSizeTrait> ArrayReader for 
ListArrayReader<OffsetSize> {
 
         // The output offsets for the computed ListArray
         let mut list_offsets: Vec<OffsetSize> =
-            Vec::with_capacity(next_batch_array.len());
+            Vec::with_capacity(next_batch_array.len() + 1);

Review Comment:
   Drive by fix



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