fix subplan stack overflow
This commit is contained in:
parent
b3dcbb8af9
commit
f57b979472
@ -1133,7 +1133,7 @@ int ObSubPlanFilterOp::inner_get_next_batch(const int64_t max_row_cnt)
|
||||
int ret = OB_SUCCESS;
|
||||
int64_t op_max_batch_size = min(max_row_cnt, MY_SPEC.max_batch_size_);
|
||||
if (need_init_before_get_row_) {
|
||||
OZ(prepare_onetime_exprs());
|
||||
OZ(SMART_CALL(prepare_onetime_exprs()));
|
||||
}
|
||||
//从主表中获取一行数据
|
||||
clear_evaluated_flag();
|
||||
|
@ -3955,7 +3955,7 @@ int ObLogPlan::generate_subplan_for_query_ref(ObQueryRefRawExpr *query_ref,
|
||||
} else if (OB_ISNULL(logical_plan = opt_ctx.get_log_plan_factory().create(opt_ctx, *subquery))) {
|
||||
ret = OB_ALLOCATE_MEMORY_FAILED;
|
||||
LOG_WARN("failed to create plan", K(ret), K(opt_ctx.get_query_ctx()->get_sql_stmt()));
|
||||
} else if (OB_FAIL(static_cast<ObSelectLogPlan *>(logical_plan)->generate_raw_plan())) {
|
||||
} else if (OB_FAIL(SMART_CALL(static_cast<ObSelectLogPlan *>(logical_plan)->generate_raw_plan()))) {
|
||||
LOG_WARN("failed to optimize sub-select", K(ret));
|
||||
} else {
|
||||
SubPlanInfo *info = static_cast<SubPlanInfo *>(get_allocator().alloc(sizeof(SubPlanInfo)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user