asubiotto commented on code in PR #9621:
URL: https://github.com/apache/arrow-rs/pull/9621#discussion_r3000928936
##########
arrow-ord/src/cmp.rs:
##########
@@ -479,6 +570,42 @@ fn apply_op_vectored<T: ArrayOrd>(
})
}
+/// Segment-based comparison for two REE arrays. Walks both run_ends arrays
+/// simultaneously, comparing once per aligned segment and bulk-filling.
+fn apply_op_segments<T: ArrayOrd>(
+ l: T,
+ l_info: &ReeInfo,
+ r: T,
+ r_info: &ReeInfo,
+ neg: bool,
+ op: fn(T::Item, T::Item) -> bool,
+) -> BooleanBuffer {
+ let end = l_info.offset + l_info.len;
+ let mut builder = BooleanBufferBuilder::new(l_info.len);
+ let mut l_phys = l_info.start_physical;
+ let mut r_phys = r_info.start_physical;
+ let mut pos = l_info.offset;
+
+ while pos < end {
+ let l_end = l_info.run_ends[l_phys].min(end);
Review Comment:
Done.
--
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]