Skip to content

Commit 02347bb

Browse files
committed
revert changes made in ARROW-11394
See commit 9f96561
1 parent 64fe229 commit 02347bb

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

arrow/src/array/transform/structure.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,10 @@ pub(super) fn build_extend(array: &ArrayData) -> Extend {
2626
index: usize,
2727
start: usize,
2828
len: usize| {
29-
mutable.child_data.iter_mut().for_each(|child| {
30-
child.extend(
31-
index,
32-
array.offset() + start,
33-
array.offset() + start + len,
34-
)
35-
})
29+
mutable
30+
.child_data
31+
.iter_mut()
32+
.for_each(|child| child.extend(index, start, start + len))
3633
},
3734
)
3835
} else {
@@ -41,7 +38,7 @@ pub(super) fn build_extend(array: &ArrayData) -> Extend {
4138
index: usize,
4239
start: usize,
4340
len: usize| {
44-
(array.offset() + start..array.offset() + start + len).for_each(|i| {
41+
(start..start + len).for_each(|i| {
4542
if array.is_valid(i) {
4643
mutable
4744
.child_data

0 commit comments

Comments
 (0)