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


##########
arrow-avro/src/reader/header.rs:
##########
@@ -55,7 +56,7 @@ impl Header {
     /// Returns an iterator over the meta keys in this header
     pub fn metadata(&self) -> impl Iterator<Item = (&[u8], &[u8])> {
         let mut last = 0;
-        self.meta_offsets.windows(2).map(move |w| {
+        self.meta_offsets.chunks_exact(2).map(move |w| {

Review Comment:
   This is a silly bug, that caused it to fail to read kv pairs after the first



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