Skip to content

Commit

Permalink
Merge pull request #2 from xuepanchen/xuepanchen-arrow-1712
Browse files Browse the repository at this point in the history
Update BinaryBuilder::Resize(int64_t capacity) in builder.cc
  • Loading branch information
xuepanchen committed Jan 15, 2018
2 parents c2f8dc4 + 232024e commit d021c54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/src/arrow/builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,7 @@ Status BinaryBuilder::Resize(int64_t capacity) {
DCHECK_LT(capacity, std::numeric_limits<int32_t>::max());
// one more then requested for offsets
RETURN_NOT_OK(offsets_builder_.Resize((capacity + 1) * sizeof(int64_t)));
RETURN_NOT_OK(value_data_builder_.Resize(capacity));
return ArrayBuilder::Resize(capacity);
}

Expand Down

0 comments on commit d021c54

Please sign in to comment.