Skip to content

Commit 3176d02

Browse files
committed
remove unecessary self parameter
1 parent 287790f commit 3176d02

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

datafusion/core/tests/parquet_filter_pushdown.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,8 @@ impl TestCase {
399399
assert_eq!(total_rows, self.expected_rows);
400400

401401
// 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");
405404
let pushdown_rows_filtered = get_value(&metrics, "pushdown_rows_filtered");
406405
println!(" pushdown_rows_filtered: {}", pushdown_rows_filtered);
407406

parquet-test-utils/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ impl TestParquetFile {
189189
///
190190
/// Recursively searches for ParquetExec and returns the metrics
191191
/// 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> {
193193
if let Some(parquet) = plan.as_any().downcast_ref::<ParquetExec>() {
194194
return parquet.metrics();
195195
}
196196

197197
for child in plan.children() {
198-
if let Some(metrics) = self.parquet_metrics(child) {
198+
if let Some(metrics) = TestParquetFile::parquet_metrics(child) {
199199
return Some(metrics);
200200
}
201201
}

0 commit comments

Comments
 (0)