diff --git a/velox/exec/GroupingSet.cpp b/velox/exec/GroupingSet.cpp index 81f21da6377ad..636e8a9170a3e 100644 --- a/velox/exec/GroupingSet.cpp +++ b/velox/exec/GroupingSet.cpp @@ -1054,6 +1054,7 @@ bool GroupingSet::getOutputWithSpill( // help partial aggregation replay the spilling procedure once needed again. merge_ = nullptr; mergeRows_ = nullptr; + mergeArgs_.clear(); spiller_ = nullptr; } return hasData;