fix sql_statistics bug

This commit is contained in:
yongshige
2023-02-08 10:46:29 +08:00
committed by ob-robot
parent ce4f8fa607
commit 134dfc14b4
7 changed files with 58 additions and 14 deletions

View File

@ -28,9 +28,12 @@ int ObLoadDataExecutor::check_is_direct_load(const ObLoadDataHint &load_hint, bo
{
int ret = OB_SUCCESS;
int64_t enable_direct = 0;
int64_t append = 0;
if (OB_FAIL(load_hint.get_value(ObLoadDataHint::ENABLE_DIRECT, enable_direct))) {
LOG_WARN("fail to get value of ENABLE_DIRECT", K(ret));
} else if ((enable_direct != 0) && GCONF._ob_enable_direct_load) {
} else if (OB_FAIL(load_hint.get_value(ObLoadDataHint::APPEND, append))) {
LOG_WARN("fail to get value of APPEND", K(ret));
} else if ((enable_direct != 0 || append != 0) && GCONF._ob_enable_direct_load) {
check_ret = true;
} else {
check_ret = false;