Add error codes for sql module, !! Please Read Task Description Carefully!!

This commit is contained in:
obdev
2023-08-01 17:18:33 +00:00
committed by ob-robot
parent a706aa36a0
commit a56c5b6dec
63 changed files with 106 additions and 67 deletions

View File

@ -327,6 +327,7 @@ int ObPlanMatchHelper::check_partition_constraint(
ret = OB_ERR_UNEXPECTED;
LOG_WARN("get unexpected null", K(ret));
} else if (OB_ISNULL(GET_MY_SESSION(pc_ctx.exec_ctx_))) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("fail to get session", KR(ret));
} else {
const uint64_t tenant_id = GET_MY_SESSION(pc_ctx.exec_ctx_)->get_effective_tenant_id();
@ -476,6 +477,7 @@ int ObPlanMatchHelper::check_strict_pwj_cons(
}
}
} else if (OB_ISNULL(GET_MY_SESSION(pc_ctx.exec_ctx_))) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("fail to get session", KR(ret));
} else {
// distribute partition wise join