Skip to content

Commit

Permalink
fix(rust): BatchedParquetReader ignore with_columns
Browse files Browse the repository at this point in the history
  • Loading branch information
cyc4188 committed May 15, 2024
1 parent d7d720a commit 2e2705f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/polars-io/src/parquet/read/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ impl<R: MmapBytesReader + 'static> ParquetReader<R> {
let metadata = self.get_metadata()?.clone();
let schema = self.schema()?;

if let Some(cols) = &self.columns {
self.projection = Some(columns_to_projection(cols, schema.as_ref())?);
}

let row_group_fetcher = FetchRowGroupsFromMmapReader::new(Box::new(self.reader))?.into();
BatchedParquetReader::new(
row_group_fetcher,
Expand Down

0 comments on commit 2e2705f

Please sign in to comment.