Skip to content

Commit

Permalink
fix(ipc): reencode list offsets bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLi-cn committed May 28, 2024
1 parent 95791f1 commit 05dbed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow-ipc/src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ fn reencode_offsets<O: OffsetSizeTrait>(
let end_offset = offset_slice.last().unwrap();

let offsets = match start_offset.as_usize() {
0 => offsets.clone(),
0 => offsets.slice_with_length(0, offset_slice.len() * O::get_byte_width()),
_ => offset_slice.iter().map(|x| *x - *start_offset).collect(),
};

Expand Down

0 comments on commit 05dbed0

Please sign in to comment.