Skip to content

Commit

Permalink
use inferenced schema, don't load schema again
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangpengHao committed Jul 26, 2024
1 parent ea11a9d commit 8d960bf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ impl FileOpener for ParquetOpener {
let limit = self.limit;

Ok(Box::pin(async move {
let options = ArrowReaderOptions::new().with_page_index(enable_page_index);
let options = ArrowReaderOptions::new()
.with_page_index(enable_page_index)
.with_schema(table_schema.clone());
let mut builder =
ParquetRecordBatchStreamBuilder::new_with_options(reader, options)
.await?;
Expand Down

0 comments on commit 8d960bf

Please sign in to comment.