[enhancement](memory) Reduce virtual memory used by PaddedPODArray (#11816)

This commit is contained in:
Xinyi Zou
2022-08-22 11:33:07 +08:00
committed by GitHub
parent 26deebccb8
commit 92cef580f3
4 changed files with 7 additions and 4 deletions

View File

@ -146,7 +146,8 @@ Status SetOperationNode::open(RuntimeState* state) {
}
// initial build hash table used for remove duplicated
_hash_tbl.reset(new HashTable(_child_expr_lists[0], _child_expr_lists[1], _build_tuple_size,
true, _find_nulls, id(), state->batch_size() * 2));
true, _find_nulls, id(),
BitUtil::RoundUpToPowerOfTwo(state->batch_size())));
RowBatch build_batch(child(0)->row_desc(), state->batch_size());
RETURN_IF_ERROR(child(0)->open(state));