@@ -550,16 +550,11 @@ async fn test_int_32() {
550550 // row counts are [5, 5, 5, 5]
551551 expected_row_counts : UInt64Array :: from ( vec ! [ 5 , 5 , 5 , 5 ] ) ,
552552 column_name : "i32" ,
553- check : Check :: RowGroup ,
553+ check : Check :: Both ,
554554 }
555555 . run ( ) ;
556556}
557557
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.
563558#[ tokio:: test]
564559async fn test_int_16 ( ) {
565560 // This creates a parquet files of 4 columns named "i8", "i16", "i32", "i64"
@@ -573,16 +568,6 @@ async fn test_int_16() {
573568 Test {
574569 reader : & reader,
575570 // 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
586571 expected_min : Arc :: new ( Int16Array :: from ( vec ! [ -5 , -4 , 0 , 5 ] ) ) , // panic here because the actual data is Int32Array
587572 // maxes are [-1, 0, 4, 9]
588573 expected_max : Arc :: new ( Int16Array :: from ( vec ! [ -1 , 0 , 4 , 9 ] ) ) ,
@@ -591,13 +576,11 @@ async fn test_int_16() {
591576 // row counts are [5, 5, 5, 5]
592577 expected_row_counts : UInt64Array :: from ( vec ! [ 5 , 5 , 5 , 5 ] ) ,
593578 column_name : "i16" ,
594- check : Check :: RowGroup ,
579+ check : Check :: Both ,
595580 }
596581 . run ( ) ;
597582}
598583
599- // BUG (same as above): ignore this test for now
600- // https://github.com/apache/datafusion/issues/10585
601584#[ tokio:: test]
602585async fn test_int_8 ( ) {
603586 // This creates a parquet files of 4 columns named "i8", "i16", "i32", "i64"
@@ -611,7 +594,6 @@ async fn test_int_8() {
611594 Test {
612595 reader : & reader,
613596 // 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
615597 expected_min : Arc :: new ( Int8Array :: from ( vec ! [ -5 , -4 , 0 , 5 ] ) ) , // panic here because the actual data is Int32Array
616598 // maxes are [-1, 0, 4, 9]
617599 expected_max : Arc :: new ( Int8Array :: from ( vec ! [ -1 , 0 , 4 , 9 ] ) ) ,
@@ -620,7 +602,7 @@ async fn test_int_8() {
620602 // row counts are [5, 5, 5, 5]
621603 expected_row_counts : UInt64Array :: from ( vec ! [ 5 , 5 , 5 , 5 ] ) ,
622604 column_name : "i8" ,
623- check : Check :: RowGroup ,
605+ check : Check :: Both ,
624606 }
625607 . run ( ) ;
626608}
0 commit comments