Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wshwsh12 committed Mar 11, 2021
1 parent 045bc0f commit 39a3192
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions executor/aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ func (e *HashAggExec) Close() error {
e.childResult = nil
e.groupSet, _ = set.NewStringSetWithMemoryUsage()
e.partialResultMap = nil
e.memTracker.ReplaceBytesUsed(0)
return e.baseExecutor.Close()
}
// `Close` may be called after `Open` without calling `Next` in test.
Expand All @@ -255,6 +256,7 @@ func (e *HashAggExec) Close() error {
for range e.finalOutputCh {
}
e.executed = false
e.memTracker.ReplaceBytesUsed(0)
return e.baseExecutor.Close()
}

Expand Down

0 comments on commit 39a3192

Please sign in to comment.