Skip to content

Commit

Permalink
add small C++ test
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Dec 6, 2023
1 parent 0d3da99 commit bd8f127
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpp/src/arrow/dataset/file_parquet_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,12 @@ TEST_P(TestParquetFileFormatScan, PredicatePushdownRowGroupFragments) {
CountRowGroupsInFragment(fragment, {5, 6},
and_(greater_equal(field_ref("i64"), literal(6)),
less(field_ref("i64"), literal(8))));

// nested field reference
CountRowGroupsInFragment(fragment, {0, 1, 2, 3, 4},
less(field_ref(FieldRef("struct", "i32")), literal(6)));
CountRowGroupsInFragment(fragment, {1},
equal(field_ref(FieldRef("struct", "str")), literal("2")));
}

TEST_P(TestParquetFileFormatScan, ExplicitRowGroupSelection) {
Expand Down

0 comments on commit bd8f127

Please sign in to comment.