Skip to content

Commit

Permalink
[BugFix] Fix spill cost too much memory when enable group execution (#…
Browse files Browse the repository at this point in the history
…51935)

Signed-off-by: stdpain <drfeng08@gmail.com>

Signed-off-by: stdpain <34912776+stdpain@users.noreply.github.com>
  • Loading branch information
stdpain committed Dec 5, 2024
1 parent e1e55b9 commit e68f45c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions be/src/exec/spill/mem_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ Status OrderedMemTable::flush(FlushCallBack callback) {
_tracker->release(consumption);
COUNTER_ADD(_spiller->metrics().mem_table_peak_memory_usage, -consumption);
_chunk.reset();
_permutation.clear();
_permutation.shrink_to_fit();
return Status::OK();
}

Expand Down

0 comments on commit e68f45c

Please sign in to comment.