Skip to content

Commit

Permalink
ARROW-17339: Deliberately introduce bug while computing child index t…
Browse files Browse the repository at this point in the history
…o check if tests fail
  • Loading branch information
rtadepalli committed Jan 31, 2023
1 parent 1b3f3ac commit e49926d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/ipc/writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ class RecordBatchSerializer {
shifted_offsets[code_idx] = unshifted_offsets[code_idx] - child_offsets[code];
}
child_lengths[code] =
std::max(child_lengths[code], shifted_offsets[code_idx] + 1);
std::max(child_lengths[code], shifted_offsets[code_idx]);
}

value_offsets = std::move(shifted_offsets_buffer);
Expand Down

0 comments on commit e49926d

Please sign in to comment.