From 16dedab0d2e7f211228b355c07492ac9644492f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Heres?= Date: Sun, 10 Nov 2024 20:23:21 +0100 Subject: [PATCH] Fix --- arrow-select/src/filter.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arrow-select/src/filter.rs b/arrow-select/src/filter.rs index 85097b2ccae..4a3c9330be8 100644 --- a/arrow-select/src/filter.rs +++ b/arrow-select/src/filter.rs @@ -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;