Skip to content

Commit

Permalink
ARROW-18212: [C++] NumericBuilder::Reset() doesn't reset all members (#…
Browse files Browse the repository at this point in the history
…14559)

Authored-by: Jin Shang <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
  • Loading branch information
js8544 authored Nov 8, 2022
1 parent 72d098b commit 5889c78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cpp/src/arrow/array/builder_primitive.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ class NumericBuilder : public ArrayBuilder {

value_type GetValue(int64_t index) const { return data_builder_.data()[index]; }

void Reset() override { data_builder_.Reset(); }
void Reset() override {
data_builder_.Reset();
ArrayBuilder::Reset();
}

Status Resize(int64_t capacity) override {
ARROW_RETURN_NOT_OK(CheckCapacity(capacity));
Expand Down

0 comments on commit 5889c78

Please sign in to comment.