@@ -206,16 +206,6 @@ impl RowGroupPruningTest {
206206 self . expected_files_pruned_by_statistics,
207207 "mismatched files_ranges_pruned_statistics" ,
208208 ) ;
209- assert_eq ! (
210- output. row_groups_matched_bloom_filter( ) ,
211- self . expected_row_group_matched_by_bloom_filter,
212- "mismatched row_groups_matched_bloom_filter" ,
213- ) ;
214- assert_eq ! (
215- output. row_groups_pruned_bloom_filter( ) ,
216- self . expected_row_group_pruned_by_bloom_filter,
217- "mismatched row_groups_pruned_bloom_filter" ,
218- ) ;
219209 assert_eq ! (
220210 output. limit_pruned_row_groups( ) ,
221211 self . expected_limit_pruned_row_groups,
@@ -1748,9 +1738,10 @@ async fn test_limit_pruning() -> datafusion_common::error::Result<()> {
17481738 let query = "explain verbose SELECT c1 FROM t WHERE c1 > 0 LIMIT 2" ;
17491739
17501740 let batches = vec ! [
1751- make_i32_batch( "c1" , vec![ 1 , 2 ] ) ?, // RG0: Fully matched, 2 rows
1752- make_i32_batch( "c1" , vec![ 3 , 4 ] ) ?, // RG1: Fully matched, 2 rows
1753- make_i32_batch( "c1" , vec![ 5 , 6 ] ) ?, // RG2: Fully matched, 2 rows
1741+ make_i32_batch( "c1" , vec![ 0 , -2 ] ) ?,
1742+ make_i32_batch( "c1" , vec![ 0 , 0 ] ) ?, // RG0: Fully matched, 2 rows
1743+ make_i32_batch( "c1" , vec![ 0 , 0 ] ) ?, // RG1: Fully matched, 2 rows
1744+ make_i32_batch( "c1" , vec![ 0 , 0 ] ) ?, // RG2: Fully matched, 2 rows
17541745 make_i32_batch( "c1" , vec![ -1 , 0 ] ) ?, // RG3: Pruned by statistics, 0 rows
17551746 ] ;
17561747
@@ -1760,12 +1751,10 @@ async fn test_limit_pruning() -> datafusion_common::error::Result<()> {
17601751 . with_expected_errors ( Some ( 0 ) )
17611752 . with_expected_rows ( 2 )
17621753 . with_pruned_files ( Some ( 0 ) )
1763- . with_matched_by_bloom_filter ( Some ( 0 ) )
1764- . with_pruned_by_bloom_filter ( Some ( 0 ) )
1765- . with_matched_by_stats ( Some ( 3 ) ) // RG0, RG1, RG2 are matched by stats (c1 > 0)
1766- . with_pruned_by_stats ( Some ( 1 ) ) // RG3 is pruned by stats (c1 = [-1, 0] does not satisfy c1 > 0)
1767- // .with_limit_pruned_row_groups(Some(2)) // RG1, RG2 are pruned by limit. (RG3 is already pruned by stats)
1768- . test_row_group_prune_with_custom_data ( schema, batches)
1754+ . with_matched_by_stats ( Some ( 5 ) ) // RG0, RG1, RG2 are matched by stats (c1 > 0)
1755+ . with_pruned_by_stats ( Some ( 0 ) ) // RG3 is pruned by stats (c1 = [-1, 0] does not satisfy c1 > 0)
1756+ . with_limit_pruned_row_groups ( Some ( 4 ) ) // RG1, RG2 are pruned by limit. (RG3 is already pruned by stats)
1757+ . test_row_group_prune_with_custom_data ( schema, batches, 2 )
17691758 . await ;
17701759
17711760 Ok ( ( ) )
0 commit comments