Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Added schema to FileReader
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Sep 11, 2022
1 parent a7428e0 commit 259bef6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/io/parquet/read/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ impl<R: Read + Seek> FileReader<R> {
}
Ok(result)
}

/// Returns the [`Schema`] associated to this file.
pub fn schema(&self) -> &Schema {
&self.row_groups.schema
}
}

impl<R: Read + Seek> Iterator for FileReader<R> {
Expand Down

0 comments on commit 259bef6

Please sign in to comment.