Skip to content

Commit f684fd0

Browse files
jiangtianjiangtian
authored andcommitted
Destroy the previously created accumulator for AggregateWindow
1 parent 31775e7 commit f684fd0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

velox/exec/AggregateWindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ class AggregateWindowFunction : public exec::WindowFunction {
151151
// aggregate_ function object should be initialized.
152152
auto singleGroup = std::vector<vector_size_t>{0};
153153
aggregate_->clear();
154+
aggregate_->destroy(folly::Range<char**>(&rawSingleGroupRow_, 1));
154155
aggregate_->initializeNewGroups(&rawSingleGroupRow_, singleGroup);
155156
aggregateInitialized_ = true;
156157
}

0 commit comments

Comments
 (0)