Dandandan commented on a change in pull request #1339:
URL: https://github.com/apache/arrow-rs/pull/1339#discussion_r815163354



##########
File path: arrow/src/ipc/reader.rs
##########
@@ -672,6 +697,18 @@ impl<R: Read + Seek> FileReader<R> {
             };
         }
 
+        let projection = projection.map(|projection| {
+            let fields = projection
+                .iter()
+                .map(|x| schema.fields[*x].clone())

Review comment:
       Good point, I think here needs some extra check on the projection values 
to avoid panics.




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