You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Jefffrey (via GitHub)" <gi...@apache.org> on 2026/10/22 11:14:23 UTC

[PR] [57_maintenance] fix: account for offset when building RunArray from ArrayData [arrow-rs]

Jefffrey opened a new pull request, #11800:
URL: https://github.com/apache/arrow-rs/pull/11800

   - Backport https://github.com/apache/arrow-rs/pull/11660
   - For inclusion in https://github.com/apache/arrow-rs/issues/11666
   
   Cherry-pick of https://github.com/apache/arrow-rs/commit/ee9f2a38f640f7147b2e849ea4fafa7f4333a45a


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [57_maintenance] fix: account for offset when building RunArray from ArrayData [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb merged PR #11800:
URL: https://github.com/apache/arrow-rs/pull/11800


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [57_maintenance] fix: account for offset when building RunArray from ArrayData [arrow-rs]

Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org