adjust subquery iter hash map memory mode && adjust table columns rewrite error code

This commit is contained in:
18523270951@163.com
2023-05-16 04:11:22 +00:00
committed by ob-robot
parent a13159f429
commit 4f31c69e63
4 changed files with 17 additions and 3 deletions

View File

@ -223,7 +223,7 @@ int ObSubQueryIterator::init_mem_entity()
lib::ContextParam param;
param.set_mem_attr(ObMemAttr(op_.get_exec_ctx().get_my_session()->get_effective_tenant_id(),
"SqlSQIterator",
ObCtxIds::WORK_AREA));
ObCtxIds::DEFAULT_CTX_ID));
param.set_properties(lib::USE_TL_PAGE_OPTIONAL);
if (OB_FAIL(CURRENT_CONTEXT->CREATE_CONTEXT(mem_entity_, param))) {
LOG_WARN("fail to create entity", K(ret));

View File

@ -67,7 +67,10 @@ public:
int init_mem_entity();
int init_hashmap(const int64_t param_num)
{
return hashmap_.create(param_num * 2, common::ObModIds::OB_HASH_BUCKET);
int64_t tenant_id = op_.get_exec_ctx().get_my_session()->get_effective_tenant_id();
return hashmap_.create(param_num * 2,
ObMemAttr(tenant_id, "SqlSQIterBKT", ObCtxIds::DEFAULT_CTX_ID),
ObMemAttr(tenant_id, "SqlSQIterND", ObCtxIds::DEFAULT_CTX_ID));
}
bool has_hashmap() const { return hashmap_.created(); }
int init_probe_row(const int64_t cnt);