Jefffrey commented on code in PR #11800:
URL: https://github.com/apache/arrow-rs/pull/11800#discussion_r4347640509
##########
arrow-array/src/array/run_array.rs:
##########
@@ -227,7 +227,7 @@ impl<R: RunEndIndexType> From<ArrayData> for RunArray<R> {
let child = &data.child_data()[0];
assert_eq!(child.data_type(), &R::DATA_TYPE, "Incorrect run ends
type");
let run_ends = unsafe {
- let scalar = child.buffers()[0].clone().into();
+ let scalar = ScalarBuffer::new(child.buffers()[0].clone(),
child.offset(), child.len());
Review Comment:
cherry pick was not clean as structure changed significantly; this should
still be equivalent fix though
--
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]