File tree 2 files changed +7
-4
lines changed
datafusion/core/src/physical_plan/file_format
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -414,8 +414,7 @@ impl FileOpener for ParquetOpener {
414
414
table_schema. as_ref ( ) ,
415
415
builder. metadata ( ) ,
416
416
reorder_predicates,
417
- & file_metrics. pushdown_rows_filtered ,
418
- & file_metrics. pushdown_eval_time ,
417
+ & file_metrics,
419
418
) ;
420
419
421
420
match row_filter {
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ use std::sync::Arc;
33
33
34
34
use crate :: physical_plan:: metrics;
35
35
36
+ use super :: ParquetFileMetrics ;
37
+
36
38
/// This module contains utilities for enabling the pushdown of DataFusion filter predicates (which
37
39
/// can be any DataFusion `Expr` that evaluates to a `BooleanArray`) to the parquet decoder level in `arrow-rs`.
38
40
/// DataFusion will use a `ParquetRecordBatchStream` to read data from parquet into arrow `RecordBatch`es.
@@ -309,9 +311,11 @@ pub fn build_row_filter(
309
311
table_schema : & Schema ,
310
312
metadata : & ParquetMetaData ,
311
313
reorder_predicates : bool ,
312
- rows_filtered : & metrics:: Count ,
313
- time : & metrics:: Time ,
314
+ file_metrics : & ParquetFileMetrics ,
314
315
) -> Result < Option < RowFilter > > {
316
+ let rows_filtered = & file_metrics. pushdown_rows_filtered ;
317
+ let time = & file_metrics. pushdown_eval_time ;
318
+
315
319
let predicates = split_conjunction_owned ( expr) ;
316
320
317
321
let mut candidates: Vec < FilterCandidate > = predicates
You can’t perform that action at this time.
0 commit comments