Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dandandan committed Nov 10, 2024
1 parent 527ac2f commit 16dedab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arrow-select/src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,11 @@ where
let mut j = 0;
let mut count = R::default_value();
let filter_values = predicate.filter.values();
let run_ends = run_ends.inner();

let pred: BooleanArray = BooleanBuffer::collect_bool(run_ends.len(), |i| {
let mut keep = false;
let mut end = run_ends.inner()[i].into() as u64;
let mut end = run_ends[i].into() as u64;
let difference = end.saturating_sub(filter_values.len() as u64);
end -= difference;

Expand Down

0 comments on commit 16dedab

Please sign in to comment.