Jefffrey opened a new issue, #10613: URL: https://github.com/apache/arrow-rs/issues/10613
### Describe the bug - same as https://github.com/apache/arrow-rs/issues/10382 but for ipc file reader ### To Reproduce ```rust // arrow-ipc/src/reader.rs #[test] fn test_file_reader_projected_schema_matches_batch_schema() { let schema = create_test_projection_schema(); let batch = create_test_projection_batch_data(&schema); let mut buf = Vec::new(); { let mut writer = crate::writer::FileWriter::try_new(&mut buf, &schema).unwrap(); writer.write(&batch).unwrap(); writer.finish().unwrap(); } let projection = vec![3, 2, 1]; let mut reader = FileReader::try_new(Cursor::new(buf), Some(projection)).unwrap(); let reader_schema = RecordBatchReader::schema(&reader); let read_batch = reader.next().unwrap().unwrap(); assert_eq!(reader_schema, read_batch.schema()); } ``` ### Expected behavior `RecordBatchReader::schema` should match the schema of the output batches https://github.com/apache/arrow-rs/blob/c4a9ef7a7095a6a61969447076f26bd3ce8e3feb/arrow-array/src/record_batch.rs#L27-L36 ### Additional context Identified by codex when I asked it to check based on original issue https://github.com/apache/arrow-rs/issues/10382 -- 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]
