add inner_same_as for udf func and remove useless GET_MIN_CLUSTER_VERSION

This commit is contained in:
Larry955
2022-11-16 07:35:39 +00:00
committed by wangzelin.wzl
parent 99d34dc07b
commit 8aee7d972f
34 changed files with 279 additions and 527 deletions

View File

@ -103,11 +103,7 @@ int ObAlterTablegroupResolver::resolve(const ParseNode &parser_tree)
alter_tablegroup_stmt->set_alter_option_set(get_alter_option_bitset());
}
} else if (T_ALTER_PARTITION_OPTION == node->children_[1]->type_) {
if (GET_MIN_CLUSTER_VERSION() < CLUSTER_VERSION_2000) {
ret = OB_NOT_SUPPORTED;
LOG_WARN("not support to modify partitions while cluster not upgrade to 2.0", K(ret));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "Modify partitions while cluster not upgrade to 2.0");
} else if (OB_FAIL(resolve_partition_options(*(node->children_[1])))) {
if (OB_FAIL(resolve_partition_options(*(node->children_[1])))) {
LOG_WARN("fail to resolve tablegroup partition option", K(ret));
} else {
// partition_array是否序列化依赖part_level,由于resolver端不获取schema,