File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
datafusion/datasource-parquet/src Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ use datafusion_datasource::PartitionedFile;
4040use datafusion_physical_expr:: PhysicalExprSchemaRewriter ;
4141use datafusion_physical_expr_common:: physical_expr:: PhysicalExpr ;
4242use datafusion_physical_optimizer:: pruning:: PruningPredicate ;
43+ use datafusion_physical_optimizer:: simplify_expressions:: PhysicalExprSimplifier ;
4344use datafusion_physical_plan:: metrics:: { Count , ExecutionPlanMetricsSet , MetricBuilder } ;
4445
4546use futures:: { StreamExt , TryStreamExt } ;
@@ -262,7 +263,13 @@ impl FileOpener for ParquetOpener {
262263 )
263264 . rewrite ( p)
264265 . map_err ( ArrowError :: from)
266+ . map ( |p| {
267+ PhysicalExprSimplifier :: new ( & physical_file_schema)
268+ . simplify ( p)
269+ . map_err ( ArrowError :: from)
270+ } )
265271 } )
272+ . transpose ( ) ?
266273 . transpose ( ) ?;
267274
268275 // Build predicates for this specific file
You can’t perform that action at this time.
0 commit comments