Skip to content

Commit cd6d766

Browse files
authored
Fix ArrowReaderOptions should read with physical_file_schema so we do… (#17)
* Fix ArrowReaderOptions should read with physical_file_schema so we don't need to cast back to utf8 * Fix fmt
1 parent c193d2e commit cd6d766

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

datafusion/datasource-parquet/src/opener.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ impl FileOpener for ParquetOpener {
153153
metadata,
154154
&mut reader,
155155
// Since we're manually loading the page index the option here should not matter but we pass it in for consistency
156-
ArrowReaderOptions::new().with_page_index(true),
156+
ArrowReaderOptions::new()
157+
.with_page_index(true)
158+
.with_schema(physical_file_schema.clone()),
157159
)
158160
.await?;
159161
}

0 commit comments

Comments
 (0)