From a27e86cfaa2288c98d677563b27f92a5b3d22189 Mon Sep 17 00:00:00 2001 From: leftgeek <1094669802@qq.com> Date: Fri, 28 Jun 2024 07:17:27 +0000 Subject: [PATCH] disallow inc direct load to table with check constraint --- src/observer/table_load/ob_table_load_service.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/observer/table_load/ob_table_load_service.cpp b/src/observer/table_load/ob_table_load_service.cpp index 30f14e8d5b..85bb750ed0 100644 --- a/src/observer/table_load/ob_table_load_service.cpp +++ b/src/observer/table_load/ob_table_load_service.cpp @@ -599,10 +599,10 @@ int ObTableLoadService::check_support_direct_load(ObSchemaGetterGuard &schema_gu ret = OB_NOT_SUPPORTED; LOG_WARN("incremental direct-load does not support table with foreign keys", KR(ret)); FORWARD_USER_ERROR_MSG(ret, "incremental direct-load does not support table with foreign keys"); - } else if (table_schema->has_constraint() && (ObDirectLoadMode::LOAD_DATA == load_mode)) { + } else if (table_schema->has_check_constraint() && (ObDirectLoadMode::LOAD_DATA == load_mode)) { ret = OB_NOT_SUPPORTED; - LOG_WARN("incremental direct-load does not support table with constraints", KR(ret)); - FORWARD_USER_ERROR_MSG(ret, "incremental direct-load does not support table with constraints"); + LOG_WARN("incremental direct-load does not support table with check constraints", KR(ret)); + FORWARD_USER_ERROR_MSG(ret, "incremental direct-load does not support table with check constraints"); } } else if (ObDirectLoadMethod::is_full(method)) { // full direct-load if (OB_UNLIKELY(!ObDirectLoadInsertMode::is_valid_for_full_method(insert_mode))) {