Skip to content

Commit

Permalink
revert changes made in ARROW-11394
Browse files Browse the repository at this point in the history
See commit 9f96561
  • Loading branch information
nevi-me committed Jul 11, 2021
1 parent 64fe229 commit 02347bb
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions arrow/src/array/transform/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@ pub(super) fn build_extend(array: &ArrayData) -> Extend {
index: usize,
start: usize,
len: usize| {
mutable.child_data.iter_mut().for_each(|child| {
child.extend(
index,
array.offset() + start,
array.offset() + start + len,
)
})
mutable
.child_data
.iter_mut()
.for_each(|child| child.extend(index, start, start + len))
},
)
} else {
Expand All @@ -41,7 +38,7 @@ pub(super) fn build_extend(array: &ArrayData) -> Extend {
index: usize,
start: usize,
len: usize| {
(array.offset() + start..array.offset() + start + len).for_each(|i| {
(start..start + len).for_each(|i| {
if array.is_valid(i) {
mutable
.child_data
Expand Down

0 comments on commit 02347bb

Please sign in to comment.