fix session plan ptr not reset after load data

This commit is contained in:
wjhh2008 2023-04-21 07:11:37 +00:00 committed by ob-robot
parent 51e24b0b36
commit 9659dc0227

View File

@ -1954,6 +1954,10 @@ int ObLoadDataSPImpl::execute(ObExecContext &ctx, ObLoadDataStmt &load_stmt)
ctx.get_physical_plan_ctx()->set_row_matched_count(box.data_trimer.get_lines_count());
}
if (OB_NOT_NULL(ctx.get_my_session())) {
ctx.get_my_session()->reset_cur_phy_plan_to_null();
}
if (OB_FAIL(ret)) {
LOG_WARN("LOAD DATA execute failed, ", K(ret));
}