adjust subquery iter hash map memory mode && adjust table columns rewrite error code
This commit is contained in:
committed by
ob-robot
parent
a13159f429
commit
4f31c69e63
@ -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));
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user