File tree 2 files changed +5
-5
lines changed
datafusion/datasource-parquet/src
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,10 @@ pub(crate) fn can_expr_be_pushed_down_with_schemas(
375
375
expr : & Arc < dyn PhysicalExpr > ,
376
376
file_schema : & Schema ,
377
377
) -> bool {
378
- pushdown_columns ( expr, file_schema) . is_ok ( )
378
+ match pushdown_columns ( expr, file_schema) {
379
+ Ok ( Some ( _) ) => true ,
380
+ Ok ( None ) | Err ( _) => false ,
381
+ }
379
382
}
380
383
381
384
/// Calculate the total compressed size of all `Column`'s required for
Original file line number Diff line number Diff line change @@ -91,10 +91,7 @@ use object_store::ObjectStore;
91
91
/// # let file_schema = Arc::new(Schema::empty());
92
92
/// # let object_store_url = ObjectStoreUrl::local_filesystem();
93
93
/// # let predicate = lit(true);
94
- /// let source = Arc::new(
95
- /// ParquetSource::default()
96
- /// .with_predicate(Arc::clone(&file_schema), predicate)
97
- /// );
94
+ /// let source = Arc::new(ParquetSource::default().with_predicate(predicate));
98
95
/// // Create a DataSourceExec for reading `file1.parquet` with a file size of 100MB
99
96
/// let config = FileScanConfigBuilder::new(object_store_url, file_schema, source)
100
97
/// .with_file(PartitionedFile::new("file1.parquet", 100*1024*1024)).build();
You can’t perform that action at this time.
0 commit comments