[CP] fix bug of NO_GATHER_OPTIMIZER_STATISTICS no affect

This commit is contained in:
obdev
2024-02-09 01:46:18 +00:00
committed by ob-robot
parent 44879cf7d6
commit 4240f522b0
3 changed files with 27 additions and 3 deletions

View File

@ -78,6 +78,7 @@ int ObTableDirectInsertCtx::init(ObExecContext *exec_ctx,
param.max_error_row_count_ = 0;
param.dup_action_ = sql::ObLoadDupActionType::LOAD_STOP_ON_DUP;
param.sql_mode_ = sql_mode;
param.online_opt_stat_gather_ = is_online_gather_statistics_;
if (OB_FAIL(table_load_instance_->init(param, store_column_idxs, load_exec_ctx_))) {
LOG_WARN("failed to init direct loader", KR(ret));
} else {