@@ -45,18 +45,12 @@ pub struct ParquetFileMetrics {
4545 pub files_ranges_pruned_statistics : PruningMetrics ,
4646 /// Number of times the predicate could not be evaluated
4747 pub predicate_evaluation_errors : Count ,
48- /// Number of row groups whose bloom filters were checked and matched (not pruned)
49- pub row_groups_matched_bloom_filter : Count ,
5048 /// Number of row groups pruned by bloom filters
51- pub row_groups_pruned_bloom_filter : Count ,
49+ pub row_groups_pruned_bloom_filter : PruningMetrics ,
5250 /// Number of row groups pruned due to limit pruning.
53- pub limit_pruned_row_groups : Count ,
54- /// Number of row groups whose statistics were checked and fully matched
55- pub row_groups_fully_matched_statistics : Count ,
56- /// Number of row groups whose statistics were checked and matched (not pruned)
57- pub row_groups_matched_statistics : Count ,
51+ pub limit_pruned_row_groups : PruningMetrics ,
5852 /// Number of row groups pruned by statistics
59- pub row_groups_pruned_statistics : Count ,
53+ pub row_groups_pruned_statistics : PruningMetrics ,
6054 /// Total number of bytes scanned
6155 pub bytes_scanned : Count ,
6256 /// Total rows filtered out by predicates pushed into parquet scan
@@ -98,19 +92,13 @@ impl ParquetFileMetrics {
9892 // -----------------------
9993 let row_groups_pruned_bloom_filter = MetricBuilder :: new ( metrics)
10094 . with_new_label ( "filename" , filename. to_string ( ) )
101- . counter ( "row_groups_pruned_bloom_filter" , partition) ;
95+ . with_type ( MetricType :: SUMMARY )
96+ . pruning_metrics ( "row_groups_pruned_bloom_filter" , partition) ;
10297
10398 let limit_pruned_row_groups = MetricBuilder :: new ( metrics)
10499 . with_new_label ( "filename" , filename. to_string ( ) )
105- . counter ( "limit_pruned_row_groups" , partition) ;
106-
107- let row_groups_fully_matched_statistics = MetricBuilder :: new ( metrics)
108- . with_new_label ( "filename" , filename. to_string ( ) )
109- . counter ( "row_groups_fully_matched_statistics" , partition) ;
110-
111- let row_groups_matched_statistics = MetricBuilder :: new ( metrics)
112- . with_new_label ( "filename" , filename. to_string ( ) )
113- . counter ( "row_groups_matched_statistics" , partition) ;
100+ . with_type ( MetricType :: SUMMARY )
101+ . pruning_metrics ( "limit_pruned_row_groups" , partition) ;
114102
115103 let row_groups_pruned_statistics = MetricBuilder :: new ( metrics)
116104 . with_new_label ( "filename" , filename. to_string ( ) )
@@ -185,8 +173,6 @@ impl ParquetFileMetrics {
185173 files_ranges_pruned_statistics,
186174 predicate_evaluation_errors,
187175 row_groups_pruned_bloom_filter,
188- row_groups_fully_matched_statistics,
189- row_groups_matched_statistics,
190176 row_groups_pruned_statistics,
191177 limit_pruned_row_groups,
192178 bytes_scanned,
0 commit comments