@@ -290,7 +290,7 @@ async fn prune_disabled() {
290
290
// https://github.com/apache/arrow-datafusion/issues/9779 bug so that tests pass
291
291
// if and only if Bloom filters on Int8 and Int16 columns are still buggy.
292
292
macro_rules! int_tests {
293
- ( $bits: expr, correct_bloom_filters : $correct_bloom_filters : expr ) => {
293
+ ( $bits: expr) => {
294
294
paste:: item! {
295
295
#[ tokio:: test]
296
296
async fn [ <prune_int $bits _lt >] ( ) {
@@ -329,9 +329,9 @@ macro_rules! int_tests {
329
329
. with_expected_errors( Some ( 0 ) )
330
330
. with_matched_by_stats( Some ( 1 ) )
331
331
. with_pruned_by_stats( Some ( 3 ) )
332
- . with_matched_by_bloom_filter( Some ( if $correct_bloom_filters { 1 } else { 0 } ) )
333
- . with_pruned_by_bloom_filter( Some ( if $correct_bloom_filters { 0 } else { 1 } ) )
334
- . with_expected_rows( if $correct_bloom_filters { 1 } else { 0 } )
332
+ . with_matched_by_bloom_filter( Some ( 1 ) )
333
+ . with_pruned_by_bloom_filter( Some ( 0 ) )
334
+ . with_expected_rows( 1 )
335
335
. test_row_group_prune( )
336
336
. await ;
337
337
}
@@ -343,9 +343,9 @@ macro_rules! int_tests {
343
343
. with_expected_errors( Some ( 0 ) )
344
344
. with_matched_by_stats( Some ( 1 ) )
345
345
. with_pruned_by_stats( Some ( 3 ) )
346
- . with_matched_by_bloom_filter( Some ( if $correct_bloom_filters { 1 } else { 0 } ) )
347
- . with_pruned_by_bloom_filter( Some ( if $correct_bloom_filters { 0 } else { 1 } ) )
348
- . with_expected_rows( if $correct_bloom_filters { 1 } else { 0 } )
346
+ . with_matched_by_bloom_filter( Some ( 1 ) )
347
+ . with_pruned_by_bloom_filter( Some ( 0 ) )
348
+ . with_expected_rows( 1 )
349
349
. test_row_group_prune( )
350
350
. await ;
351
351
}
@@ -404,9 +404,9 @@ macro_rules! int_tests {
404
404
. with_expected_errors( Some ( 0 ) )
405
405
. with_matched_by_stats( Some ( 1 ) )
406
406
. with_pruned_by_stats( Some ( 3 ) )
407
- . with_matched_by_bloom_filter( Some ( if $correct_bloom_filters { 1 } else { 0 } ) )
408
- . with_pruned_by_bloom_filter( Some ( if $correct_bloom_filters { 0 } else { 1 } ) )
409
- . with_expected_rows( if $correct_bloom_filters { 1 } else { 0 } )
407
+ . with_matched_by_bloom_filter( Some ( 1 ) )
408
+ . with_pruned_by_bloom_filter( Some ( 0 ) )
409
+ . with_expected_rows( 1 )
410
410
. test_row_group_prune( )
411
411
. await ;
412
412
}
@@ -447,17 +447,16 @@ macro_rules! int_tests {
447
447
} ;
448
448
}
449
449
450
- int_tests ! ( 8 , correct_bloom_filters: false ) ;
451
- int_tests ! ( 16 , correct_bloom_filters: false ) ;
452
- int_tests ! ( 32 , correct_bloom_filters: true ) ;
453
- int_tests ! ( 64 , correct_bloom_filters: true ) ;
450
+ // int8/int16 are incorrect: https://github.com/apache/arrow-datafusion/issues/9779
451
+ int_tests ! ( 32 ) ;
452
+ int_tests ! ( 64 ) ;
454
453
455
454
// $bits: number of bits of the integer to test (8, 16, 32, 64)
456
455
// $correct_bloom_filters: if false, replicates the
457
456
// https://github.com/apache/arrow-datafusion/issues/9779 bug so that tests pass
458
457
// if and only if Bloom filters on UInt8 and UInt16 columns are still buggy.
459
458
macro_rules! uint_tests {
460
- ( $bits: expr, correct_bloom_filters : $correct_bloom_filters : expr ) => {
459
+ ( $bits: expr) => {
461
460
paste:: item! {
462
461
#[ tokio:: test]
463
462
async fn [ <prune_uint $bits _lt >] ( ) {
@@ -482,9 +481,9 @@ macro_rules! uint_tests {
482
481
. with_expected_errors( Some ( 0 ) )
483
482
. with_matched_by_stats( Some ( 1 ) )
484
483
. with_pruned_by_stats( Some ( 3 ) )
485
- . with_matched_by_bloom_filter( Some ( if $correct_bloom_filters { 1 } else { 0 } ) )
486
- . with_pruned_by_bloom_filter( Some ( if $correct_bloom_filters { 0 } else { 1 } ) )
487
- . with_expected_rows( if $correct_bloom_filters { 1 } else { 0 } )
484
+ . with_matched_by_bloom_filter( Some ( 1 ) )
485
+ . with_pruned_by_bloom_filter( Some ( 0 ) )
486
+ . with_expected_rows( 1 )
488
487
. test_row_group_prune( )
489
488
. await ;
490
489
}
@@ -496,9 +495,9 @@ macro_rules! uint_tests {
496
495
. with_expected_errors( Some ( 0 ) )
497
496
. with_matched_by_stats( Some ( 1 ) )
498
497
. with_pruned_by_stats( Some ( 3 ) )
499
- . with_matched_by_bloom_filter( Some ( if $correct_bloom_filters { 1 } else { 0 } ) )
500
- . with_pruned_by_bloom_filter( Some ( if $correct_bloom_filters { 0 } else { 1 } ) )
501
- . with_expected_rows( if $correct_bloom_filters { 1 } else { 0 } )
498
+ . with_matched_by_bloom_filter( Some ( 1 ) )
499
+ . with_pruned_by_bloom_filter( Some ( 0 ) )
500
+ . with_expected_rows( 1 )
502
501
. test_row_group_prune( )
503
502
. await ;
504
503
}
@@ -542,9 +541,9 @@ macro_rules! uint_tests {
542
541
. with_expected_errors( Some ( 0 ) )
543
542
. with_matched_by_stats( Some ( 1 ) )
544
543
. with_pruned_by_stats( Some ( 3 ) )
545
- . with_matched_by_bloom_filter( Some ( if $correct_bloom_filters { 1 } else { 0 } ) )
546
- . with_pruned_by_bloom_filter( Some ( if $correct_bloom_filters { 0 } else { 1 } ) )
547
- . with_expected_rows( if $correct_bloom_filters { 1 } else { 0 } )
544
+ . with_matched_by_bloom_filter( Some ( 1 ) )
545
+ . with_pruned_by_bloom_filter( Some ( 0 ) )
546
+ . with_expected_rows( 1 )
548
547
. test_row_group_prune( )
549
548
. await ;
550
549
}
@@ -585,10 +584,9 @@ macro_rules! uint_tests {
585
584
} ;
586
585
}
587
586
588
- uint_tests ! ( 8 , correct_bloom_filters: false ) ;
589
- uint_tests ! ( 16 , correct_bloom_filters: false ) ;
590
- uint_tests ! ( 32 , correct_bloom_filters: true ) ;
591
- uint_tests ! ( 64 , correct_bloom_filters: true ) ;
587
+ // uint8/uint16 are incorrect: https://github.com/apache/arrow-datafusion/issues/9779
588
+ uint_tests ! ( 32 ) ;
589
+ uint_tests ! ( 64 ) ;
592
590
593
591
#[ tokio:: test]
594
592
async fn prune_int32_eq_large_in_list ( ) {
0 commit comments