tisonkun commented on code in PR #8931:
URL: https://github.com/apache/arrow-rs/pull/8931#discussion_r2567070269


##########
arrow-ipc/src/reader.rs:
##########
@@ -569,7 +569,13 @@ impl<'a> RecordBatchDecoder<'a> {
     }
 
     fn next_buffer(&mut self) -> Result<Buffer, ArrowError> {
-        read_buffer(self.buffers.next().unwrap(), self.data, self.compression)
+        read_buffer(
+            self.buffers.next().ok_or_else(|| {

Review Comment:
   @leiysky You can make use of 
https://github.com/apache/arrow-rs/pull/8931#issuecomment-3584055556.
   
   But it is a manual constructed test vector so I'd expect use it as a 
snapshot. If the internal code changes, the snapshot may be outdated and need 
update then.
   
   I can't find other way to "reliably construct a dedicated invalid data".



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