fix config online_estimate_percent not work in remote plan

This commit is contained in:
ChangerR
2024-07-09 14:37:46 +00:00
committed by ob-robot
parent 1f9727482e
commit d6ec2ffac9
6 changed files with 23 additions and 8 deletions

View File

@ -24,6 +24,7 @@
#include "share/ob_device_manager.h"
#include "share/backup/ob_backup_io_adapter.h"
#include "observer/table_load/backup/ob_table_load_backup_table.h"
#include "share/stat/ob_dbms_stats_utils.h"
namespace oceanbase
{
@ -2478,6 +2479,9 @@ int ObLoadDataDirectImpl::init_execute_context()
} else if (OB_FAIL(ObDDLUtil::get_temp_store_compress_type(
table_compressor_type, execute_param_.parallel_, load_param.compressor_type_))) {
LOG_WARN("fail to get tmp store compressor type", KR(ret));
} else if (OB_FAIL(ObDbmsStatsUtils::get_sys_online_estimate_percent(*ctx_,
load_param.online_sample_percent_))) {
LOG_WARN("fail to get sys online estimate percent", KR(ret));
} else if (OB_FAIL(direct_loader_.init(load_param, execute_param_.column_ids_,
&execute_ctx_.exec_ctx_))) {
LOG_WARN("fail to init direct loader", KR(ret));