[FEAT MERGE]logical plan move to plan cache module add feedback into to plan

This commit is contained in:
zzg19950727
2023-04-18 11:41:58 +00:00
committed by ob-robot
parent e392fc2a37
commit 8daff3e658
122 changed files with 45692 additions and 43707 deletions

View File

@ -759,7 +759,15 @@ OB_INLINE int ObResultSet::do_close_plan(int errcode, ObExecContext &ctx)
ret = sret;
}
if (OB_SUCC(ret)) {
physical_plan_->set_record_plan_info(false);
if (physical_plan_->need_record_plan_info()) {
if (ctx.get_feedback_info().is_valid() &&
physical_plan_->get_logical_plan().is_valid() &&
OB_FAIL(physical_plan_->set_feedback_info(ctx))) {
LOG_WARN("failed to set feedback info", K(ret));
} else {
physical_plan_->set_record_plan_info(false);
}
}
}
} else {
ret = OB_ERR_UNEXPECTED;