@@ -550,16 +550,11 @@ async fn test_int_32() {
550
550
// row counts are [5, 5, 5, 5]
551
551
expected_row_counts : UInt64Array :: from ( vec ! [ 5 , 5 , 5 , 5 ] ) ,
552
552
column_name : "i32" ,
553
- check : Check :: RowGroup ,
553
+ check : Check :: Both ,
554
554
}
555
555
. run ( ) ;
556
556
}
557
557
558
- // BUG: ignore this test for now
559
- // https://github.com/apache/datafusion/issues/10585
560
- // Note that the file has 4 columns named "i8", "i16", "i32", "i64".
561
- // - The tests on column i32 and i64 passed.
562
- // - The tests on column i8 and i16 failed.
563
558
#[ tokio:: test]
564
559
async fn test_int_16 ( ) {
565
560
// This creates a parquet files of 4 columns named "i8", "i16", "i32", "i64"
@@ -573,16 +568,6 @@ async fn test_int_16() {
573
568
Test {
574
569
reader : & reader,
575
570
// mins are [-5, -4, 0, 5]
576
- // BUG: not sure why this returns same data but in Int32Array type even though I debugged and the columns name is "i16" an its data is Int16
577
- // My debugging tells me the bug is either at:
578
- // 1. The new code to get "iter". See the code in this PR with
579
- // // Get an iterator over the column statistics
580
- // let iter = row_groups
581
- // .iter()
582
- // .map(|x| x.column(parquet_idx).statistics());
583
- // OR
584
- // 2. in the function (and/or its marco) `pub(crate) fn min_statistics<'a, I: Iterator<Item = Option<&'a ParquetStatistics>>>` here
585
- // https://github.com/apache/datafusion/blob/ea023e2d4878240eece870cf4b346c7a0667aeed/datafusion/core/src/datasource/physical_plan/parquet/statistics.rs#L179
586
571
expected_min : Arc :: new ( Int16Array :: from ( vec ! [ -5 , -4 , 0 , 5 ] ) ) , // panic here because the actual data is Int32Array
587
572
// maxes are [-1, 0, 4, 9]
588
573
expected_max : Arc :: new ( Int16Array :: from ( vec ! [ -1 , 0 , 4 , 9 ] ) ) ,
@@ -591,13 +576,11 @@ async fn test_int_16() {
591
576
// row counts are [5, 5, 5, 5]
592
577
expected_row_counts : UInt64Array :: from ( vec ! [ 5 , 5 , 5 , 5 ] ) ,
593
578
column_name : "i16" ,
594
- check : Check :: RowGroup ,
579
+ check : Check :: Both ,
595
580
}
596
581
. run ( ) ;
597
582
}
598
583
599
- // BUG (same as above): ignore this test for now
600
- // https://github.com/apache/datafusion/issues/10585
601
584
#[ tokio:: test]
602
585
async fn test_int_8 ( ) {
603
586
// This creates a parquet files of 4 columns named "i8", "i16", "i32", "i64"
@@ -611,7 +594,6 @@ async fn test_int_8() {
611
594
Test {
612
595
reader : & reader,
613
596
// mins are [-5, -4, 0, 5]
614
- // BUG: not sure why this returns same data but in Int32Array even though I debugged and the columns name is "i8" an its data is Int8
615
597
expected_min : Arc :: new ( Int8Array :: from ( vec ! [ -5 , -4 , 0 , 5 ] ) ) , // panic here because the actual data is Int32Array
616
598
// maxes are [-1, 0, 4, 9]
617
599
expected_max : Arc :: new ( Int8Array :: from ( vec ! [ -1 , 0 , 4 , 9 ] ) ) ,
@@ -620,7 +602,7 @@ async fn test_int_8() {
620
602
// row counts are [5, 5, 5, 5]
621
603
expected_row_counts : UInt64Array :: from ( vec ! [ 5 , 5 , 5 , 5 ] ) ,
622
604
column_name : "i8" ,
623
- check : Check :: RowGroup ,
605
+ check : Check :: Both ,
624
606
}
625
607
. run ( ) ;
626
608
}
0 commit comments