Skip to content

Commit

Permalink
Test page index filtering in parquet integration test (#4062)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored Nov 7, 2022
1 parent 6b71294 commit 532b4a7
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions datafusion/core/tests/parquet_filter_pushdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,32 +341,33 @@ impl<'a> TestCase<'a> {

assert_eq!(no_pushdown, pushdown_and_reordering);

// page index filtering is not correct:
// https://github.com/apache/arrow-datafusion/issues/4002
// when it is fixed we can add these tests too

// let page_index_only = self
// .read_with_options(
// ParquetScanOptions {
// pushdown_filters: false,
// reorder_filters: false,
// enable_page_index: true,
// },
// )
// .await;
//assert_eq!(no_pushdown, page_index_only);

// let pushdown_reordering_and_page_index = self
// .read_with_options(
// ParquetScanOptions {
// pushdown_filters: false,
// reorder_filters: false,
// enable_page_index: true,
// },
// )
// .await;

//assert_eq!(no_pushdown, pushdown_reordering_and_page_index);
let page_index_only = self
.read_with_options(
ParquetScanOptions {
pushdown_filters: false,
reorder_filters: false,
enable_page_index: true,
},
// pushdown is off so no pushdown is expected
PushdownExpected::None,
filter,
)
.await;
assert_eq!(no_pushdown, page_index_only);

let pushdown_reordering_and_page_index = self
.read_with_options(
ParquetScanOptions {
pushdown_filters: true,
reorder_filters: true,
enable_page_index: true,
},
self.pushdown_expected,
filter,
)
.await;

assert_eq!(no_pushdown, pushdown_reordering_and_page_index);
}

/// Reads data from a test parquet file using the specified scan options
Expand Down

0 comments on commit 532b4a7

Please sign in to comment.