manishkr commented on code in PR #9036:
URL: https://github.com/apache/arrow-rs/pull/9036#discussion_r2648942158


##########
arrow-select/src/filter.rs:
##########
@@ -495,14 +495,21 @@ where
     let filter_values = predicate.filter.values();
     let run_ends = run_ends.inner();
 
+    let offset = array.offset() as u64;
+    let slice_end = (offset + array.len() as u64).min(offset + 
filter_values.len() as u64);

Review Comment:
   Thanks. Changed it to simple way, we just need to clamp the end by offset. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to