@@ -207,16 +207,6 @@ impl RowGroupPruningTest {
207207 self . expected_files_pruned_by_statistics,
208208 "mismatched files_ranges_pruned_statistics" ,
209209 ) ;
210- assert_eq ! (
211- output. row_groups_matched_bloom_filter( ) ,
212- self . expected_row_group_matched_by_bloom_filter,
213- "mismatched row_groups_matched_bloom_filter" ,
214- ) ;
215- assert_eq ! (
216- output. row_groups_pruned_bloom_filter( ) ,
217- self . expected_row_group_pruned_by_bloom_filter,
218- "mismatched row_groups_pruned_bloom_filter" ,
219- ) ;
220210 assert_eq ! (
221211 output. limit_pruned_row_groups( ) ,
222212 self . expected_limit_pruned_row_groups,
@@ -1746,12 +1736,13 @@ async fn test_limit_pruning() -> datafusion_common::error::Result<()> {
17461736 // So 3 row groups are effectively pruned due to limit pruning.
17471737
17481738 let schema = Arc :: new ( Schema :: new ( vec ! [ Field :: new( "c1" , DataType :: Int32 , false ) ] ) ) ;
1749- let query = "SELECT c1 FROM t WHERE c1 > 0 LIMIT 2" ;
1739+ let query = "SELECT c1 FROM t WHERE c1 >= 0 LIMIT 2" ;
17501740
17511741 let batches = vec ! [
1752- make_i32_batch( "c1" , vec![ 1 , 2 ] ) ?, // RG0: Fully matched, 2 rows
1753- make_i32_batch( "c1" , vec![ 3 , 4 ] ) ?, // RG1: Fully matched, 2 rows
1754- make_i32_batch( "c1" , vec![ 5 , 6 ] ) ?, // RG2: Fully matched, 2 rows
1742+ make_i32_batch( "c1" , vec![ 0 , -2 ] ) ?,
1743+ make_i32_batch( "c1" , vec![ 0 , 0 ] ) ?, // RG0: Fully matched, 2 rows
1744+ make_i32_batch( "c1" , vec![ 0 , 0 ] ) ?, // RG1: Fully matched, 2 rows
1745+ make_i32_batch( "c1" , vec![ 0 , 0 ] ) ?, // RG2: Fully matched, 2 rows
17551746 make_i32_batch( "c1" , vec![ -1 , 0 ] ) ?, // RG3: Pruned by statistics, 0 rows
17561747 ] ;
17571748
@@ -1761,11 +1752,9 @@ async fn test_limit_pruning() -> datafusion_common::error::Result<()> {
17611752 . with_expected_errors ( Some ( 0 ) )
17621753 . with_expected_rows ( 2 )
17631754 . with_pruned_files ( Some ( 0 ) )
1764- . with_matched_by_bloom_filter ( Some ( 0 ) )
1765- . with_pruned_by_bloom_filter ( Some ( 0 ) )
1766- . with_matched_by_stats ( Some ( 3 ) ) // RG0, RG1, RG2 are matched by stats (c1 > 0)
1767- . with_pruned_by_stats ( Some ( 1 ) ) // RG3 is pruned by stats (c1 = [-1, 0] does not satisfy c1 > 0)
1768- . with_limit_pruned_row_groups ( Some ( 2 ) ) // RG1, RG2 are pruned by limit. (RG3 is already pruned by stats)
1755+ . with_matched_by_stats ( Some ( 5 ) ) // RG0, RG1, RG2 are matched by stats (c1 > 0)
1756+ . with_pruned_by_stats ( Some ( 0 ) ) // RG3 is pruned by stats (c1 = [-1, 0] does not satisfy c1 > 0)
1757+ . with_limit_pruned_row_groups ( Some ( 4 ) ) // RG1, RG2 are pruned by limit. (RG3 is already pruned by stats)
17691758 . test_row_group_prune_with_custom_data ( schema, batches, 2 )
17701759 . await ;
17711760
0 commit comments