Skip to content

Commit

Permalink
fix(ipc): write_array_data bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonnnli committed Aug 4, 2022
1 parent 1ccff32 commit bd9ad05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow/src/ipc/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ fn write_array_data(
) {
let offset_buffer = &array_data.buffers()[0];
let value_offset_byte_width = get_value_offset_byte_width(data_type);
let min_length = array_data.len() * value_offset_byte_width;
let min_length = (array_data.len() + 1) * value_offset_byte_width;
if buffer_need_truncate(
array_data.offset(),
offset_buffer,
Expand Down

0 comments on commit bd9ad05

Please sign in to comment.