File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -399,9 +399,8 @@ impl TestCase {
399
399
assert_eq ! ( total_rows, self . expected_rows) ;
400
400
401
401
// verify expected pushdown
402
- let metrics = test_file
403
- . parquet_metrics ( exec)
404
- . expect ( "found parquet metrics" ) ;
402
+ let metrics =
403
+ TestParquetFile :: parquet_metrics ( exec) . expect ( "found parquet metrics" ) ;
405
404
let pushdown_rows_filtered = get_value ( & metrics, "pushdown_rows_filtered" ) ;
406
405
println ! ( " pushdown_rows_filtered: {}" , pushdown_rows_filtered) ;
407
406
Original file line number Diff line number Diff line change @@ -189,13 +189,13 @@ impl TestParquetFile {
189
189
///
190
190
/// Recursively searches for ParquetExec and returns the metrics
191
191
/// on the first one it finds
192
- pub fn parquet_metrics ( & self , plan : Arc < dyn ExecutionPlan > ) -> Option < MetricsSet > {
192
+ pub fn parquet_metrics ( plan : Arc < dyn ExecutionPlan > ) -> Option < MetricsSet > {
193
193
if let Some ( parquet) = plan. as_any ( ) . downcast_ref :: < ParquetExec > ( ) {
194
194
return parquet. metrics ( ) ;
195
195
}
196
196
197
197
for child in plan. children ( ) {
198
- if let Some ( metrics) = self . parquet_metrics ( child) {
198
+ if let Some ( metrics) = TestParquetFile :: parquet_metrics ( child) {
199
199
return Some ( metrics) ;
200
200
}
201
201
}
You can’t perform that action at this time.
0 commit comments