Skip to content

Commit

Permalink
Fix pruning logic (#4744)
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Dec 27, 2022
1 parent 2aedc3a commit 523466c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ fn prune_pages_in_one_row_group(
let mut sum_row = *row_vec.first().unwrap();
let mut selected = *values.first().unwrap();
trace!("Pruned to to {:?} using {:?}", values, pruning_stats);
for (i, &f) in values.iter().skip(1).enumerate() {
for (i, &f) in values.iter().enumerate().skip(1) {
if f == selected {
sum_row += *row_vec.get(i).unwrap();
} else {
Expand Down
1 change: 0 additions & 1 deletion datafusion/core/tests/parquet/filter_pushdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
//! select * from data limit 10;
//! ```
use std::sync::Arc;
use std::time::Instant;

use arrow::compute::concat_batches;
Expand Down

0 comments on commit 523466c

Please sign in to comment.