Skip to content

Commit

Permalink
Address a remaining comment in apache#41352
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed May 14, 2024
1 parent dcc3b7a commit 4821398
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cpp/src/arrow/compute/row/grouper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ struct GrouperFastImpl : public Grouper {
}

Status Reset() override {
ARROW_DCHECK_EQ(temp_stack_.AllocatedSize(), 0);
rows_.Clean();
rows_minibatch_.Clean();
map_.cleanup();
Expand Down
2 changes: 2 additions & 0 deletions cpp/src/arrow/compute/util_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class ARROW_EXPORT TempVectorStack {
public:
Status Init(MemoryPool* pool, int64_t size);

int64_t AllocatedSize() const { return top_; }

private:
static int64_t EstimatedAllocationSize(int64_t size) {
return PaddedAllocationSize(size) + 2 * sizeof(uint64_t);
Expand Down

0 comments on commit 4821398

Please sign in to comment.