Skip to content

Commit fa75209

Browse files
committed
update
1 parent 42572e8 commit fa75209

12 files changed

Lines changed: 28 additions & 458 deletions

File tree

datafusion/core/tests/parquet/mod.rs

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,13 @@ impl TestOutput {
173173
if let MetricValue::PruningMetrics {
174174
pruning_metrics, ..
175175
} = metric.value()
176-
{
177-
total_pruned += pruning_metrics.pruned();
178-
total_matched += pruning_metrics.matched();
179-
total_fully_matched += pruning_metrics.fully_matched();
176+
{
177+
total_pruned += pruning_metrics.pruned();
178+
total_matched += pruning_metrics.matched();
179+
total_fully_matched += pruning_metrics.fully_matched();
180180

181-
found = true;
181+
found = true;
182+
}
182183
}
183184
}
184185

@@ -215,18 +216,6 @@ impl TestOutput {
215216
.map(|pm| pm.total_fully_matched())
216217
}
217218

218-
/*
219-
/// The number of row_groups fully matched by statistics
220-
fn row_groups_fully_matched_statistics(&self) -> Option<usize> {
221-
self.metric_value("row_groups_fully_matched_statistics")
222-
}
223-
224-
/// The number of row groups pruned by limit pruning
225-
fn limit_pruned_row_groups(&self) -> Option<usize> {
226-
self.metric_value("limit_pruned_row_groups")
227-
}
228-
*/
229-
230219
/// The number of row_groups pruned by statistics
231220
fn row_groups_pruned_statistics(&self) -> Option<usize> {
232221
self.pruning_metric("row_groups_pruned_statistics")

datafusion/core/tests/parquet/row_group_pruning.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,8 +1900,8 @@ async fn test_limit_pruning_complex_filter() -> datafusion_common::error::Result
19001900
}
19011901

19021902
#[tokio::test]
1903-
async fn test_limit_pruning_multiple_fully_matched()
1904-
-> datafusion_common::error::Result<()> {
1903+
async fn test_limit_pruning_multiple_fully_matched(
1904+
) -> datafusion_common::error::Result<()> {
19051905
// Test Case 2: Limit requires multiple fully matched row groups
19061906
// Row Group 0: a=[5,5,5,5] -> Fully matched, 4 rows
19071907
// Row Group 1: a=[5,5,5,5] -> Fully matched, 4 rows

datafusion/datasource-parquet/src/metrics.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ pub struct ParquetFileMetrics {
5252
pub row_groups_pruned_statistics: PruningMetrics,
5353
/// Number of row groups whose bloom filters were checked and matched (not pruned)
5454
pub row_groups_matched_bloom_filter: Count,
55-
/// Number of row groups pruned due to limit pruning.
56-
pub limit_pruned_row_groups: Count,
57-
/// Number of row groups whose statistics were checked and fully matched
58-
pub row_groups_fully_matched_statistics: Count,
59-
/// Number of row groups whose statistics were checked and matched (not pruned)
60-
pub row_groups_matched_statistics: Count,
6155
/// Total number of bytes scanned
6256
pub bytes_scanned: Count,
6357
/// Total rows filtered out by predicates pushed into parquet scan
@@ -174,8 +168,6 @@ impl ParquetFileMetrics {
174168
predicate_evaluation_errors,
175169
row_groups_matched_bloom_filter,
176170
row_groups_pruned_bloom_filter,
177-
row_groups_fully_matched_statistics,
178-
row_groups_matched_statistics,
179171
row_groups_pruned_statistics,
180172
limit_pruned_row_groups,
181173
bytes_scanned,

0 commit comments

Comments
 (0)