tustvold commented on code in PR #7798: URL: https://github.com/apache/arrow-datafusion/pull/7798#discussion_r1362643134
########## datafusion/physical-plan/src/sorts/cursor.rs: ########## @@ -284,6 +333,34 @@ impl<T: FieldValues> Cursor for FieldCursor<T> { self.offset += 1; t } + + fn slice(&self, offset: usize, length: usize) -> Self { Review Comment: What would happen if this method was simply ``` Self { values: self.values.slice(0, self.offset + offset + length), offset: self.offset + offset null_threshold: self.null_threshold, } ``` Or equivalently (I think) ``` Self { values: self.values.slice(offset + self.offset, length), offset: 0 null_threshold: self.null_threshold.saturating_sub(offset + self.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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org