[enhancement](memtracker) Refactor load channel + memtable mem tracker (#13795)

This commit is contained in:
Xinyi Zou
2022-11-03 09:47:12 +08:00
committed by GitHub
parent b3c6af0059
commit 32a029d9dc
40 changed files with 215 additions and 168 deletions

View File

@ -43,8 +43,8 @@ Status IntersectNode::init(const TPlanNode& tnode, RuntimeState* state) {
// 2 probe with child(1), then filter the hash table and find the matched item, use them to rebuild a hash table
// repeat [2] this for all the rest child
Status IntersectNode::open(RuntimeState* state) {
SCOPED_CONSUME_MEM_TRACKER(mem_tracker());
RETURN_IF_ERROR(SetOperationNode::open(state));
SCOPED_CONSUME_MEM_TRACKER(mem_tracker());
// if a table is empty, the result must be empty
if (_hash_tbl->size() == 0) {
_hash_tbl_iterator = _hash_tbl->begin();