diff --git a/src/sql/engine/cmd/ob_table_executor.cpp b/src/sql/engine/cmd/ob_table_executor.cpp index 903921f3cd..9bbaee89be 100644 --- a/src/sql/engine/cmd/ob_table_executor.cpp +++ b/src/sql/engine/cmd/ob_table_executor.cpp @@ -1525,6 +1525,13 @@ int ObAlterTableExecutor::calc_range_values_exprs( *sub_part, ctx)); } + if (OB_SUCC(ret)) { + if (OB_FAIL(ObPartitionExecutorUtils::check_increasing_range_value(part->get_subpart_array(), + part->get_subpartition_num(), + stmt::T_ALTER_TABLE))) { + LOG_WARN("check increasing range value failed", K(ret)); + } + } } } else { const int64_t part_num = new_table_schema.get_partition_num(); @@ -1540,6 +1547,13 @@ int ObAlterTableExecutor::calc_range_values_exprs( *part, ctx)); } + if (OB_SUCC(ret)) { + if (OB_FAIL(ObPartitionExecutorUtils::check_increasing_range_value(part_array, + part_num, + stmt::T_ALTER_TABLE))) { + LOG_WARN("check increasing range value failed", K(ret)); + } + } } return ret; }