Skip to content

Commit

Permalink
[BUG] Fix reading of logical types from Parquet files in s3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Chia committed Oct 10, 2024
1 parent 73ff3f3 commit ab9a79e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/daft-parquet/src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,10 +733,9 @@ impl ParquetFileReader {
})?
.into_iter()
.collect::<DaftResult<Vec<_>>>()?;
let daft_schema = daft_core::prelude::Schema::try_from(self.arrow_schema.as_ref())?;

Table::new_with_size(
daft_schema,
Schema::new(all_series.iter().map(|s| s.field().clone()).collect())?,
all_series,
self.row_ranges.as_ref().iter().map(|rr| rr.num_rows).sum(),
)
Expand Down

0 comments on commit ab9a79e

Please sign in to comment.