Skip to content

Commit

Permalink
Update arrow-ipc/src/reader.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
tustvold and alamb authored Dec 8, 2023
1 parent eae3ff5 commit 014ba5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arrow-ipc/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ impl<R: Read + Seek> FileReader<R> {
///
/// Returns errors if the file does not meet the Arrow Format footer requirements
pub fn try_new(mut reader: R, projection: Option<Vec<usize>>) -> Result<Self, ArrowError> {
// Space for ARROW_MAGIC (6 bytes) and length (4 bytes)
let mut buffer = [0; 10];
reader.seek(SeekFrom::End(-10))?;
reader.read_exact(&mut buffer)?;
Expand Down

0 comments on commit 014ba5f

Please sign in to comment.