From a9b32cffbd4ccbb8a59f9e08b00be92f5beae771 Mon Sep 17 00:00:00 2001 From: obdev Date: Fri, 9 Feb 2024 11:48:19 +0000 Subject: [PATCH] fix bug, get_column_group_type_name may out of array --- src/share/schema/ob_schema_struct.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/schema/ob_schema_struct.cpp b/src/share/schema/ob_schema_struct.cpp index 2bb664b321..d2a4445ff5 100644 --- a/src/share/schema/ob_schema_struct.cpp +++ b/src/share/schema/ob_schema_struct.cpp @@ -13923,7 +13923,7 @@ void ObColumnGroupSchema::remove_all_cols() { int ObColumnGroupSchema::get_column_group_type_name(ObString &readable_cg_name) const { int ret = OB_SUCCESS; - if (column_group_type_ > ObColumnGroupType::NORMAL_COLUMN_GROUP || + if (column_group_type_ >= ObColumnGroupType::NORMAL_COLUMN_GROUP || column_group_type_ < ObColumnGroupType::DEFAULT_COLUMN_GROUP) { ret = OB_NOT_SUPPORTED; LOG_WARN("receive not suppoted column group type", K(ret), K(column_group_type_));