disable alter partition of materialized view
This commit is contained in:
12
deps/oblib/src/lib/container/ob_mask_set2.h
vendored
12
deps/oblib/src/lib/container/ob_mask_set2.h
vendored
@ -31,9 +31,9 @@ public:
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
if (NULL == array) {
|
||||
ret = OB_INVALID_ARGUMENT;
|
||||
} else if (OB_FAIL(bitset_.reserve(array->count()))) {
|
||||
} else {
|
||||
ret = OB_INVALID_ARGUMENT;
|
||||
} else if (OB_FAIL(bitset_.reserve(array->count()))) {
|
||||
} else {
|
||||
array_ = array;
|
||||
is_inited_ = true;
|
||||
}
|
||||
@ -135,9 +135,9 @@ public:
|
||||
return bool_ret;
|
||||
}
|
||||
int get_not_mask(ObIArray<T> &array) const
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
if (!is_inited_) {
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
if (!is_inited_) {
|
||||
ret = OB_NOT_INIT;
|
||||
} else {
|
||||
array.reset();
|
||||
|
||||
@ -14431,6 +14431,10 @@ int ObDDLService::check_alter_partitions(const ObTableSchema &orig_table_schema,
|
||||
LOG_WARN("fail to get schema guard with version in inner table", K(ret), K(tenant_id));
|
||||
} else if (OB_FAIL(ObCompatModeGetter::check_is_oracle_mode_with_tenant_id(tenant_id, is_oracle_mode))) {
|
||||
LOG_WARN("fail to check is oracle mode", K(ret));
|
||||
} else if (orig_table_schema.is_materialized_view()) {
|
||||
ret = OB_NOT_SUPPORTED;
|
||||
LOG_WARN("alter partition of materialized view is not supported", KR(ret));
|
||||
LOG_USER_ERROR(OB_NOT_SUPPORTED, "alter partition of materialized view is");
|
||||
} else if (orig_table_schema.is_interval_part()) {
|
||||
if (PARTITION_LEVEL_TWO == orig_table_schema.get_part_level()
|
||||
&& !orig_table_schema.has_sub_part_template_def()) {
|
||||
|
||||
@ -4520,6 +4520,10 @@ int ObAlterTableResolver::resolve_partition_options(const ParseNode &node)
|
||||
if (OB_ISNULL(alter_table_stmt)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
SQL_RESV_LOG(WARN, "alter table stmt should not be null", K(ret));
|
||||
} else if (table_schema_->is_materialized_view()) {
|
||||
ret = OB_NOT_SUPPORTED;
|
||||
LOG_WARN("alter partition of materialized view is not supported", KR(ret));
|
||||
LOG_USER_ERROR(OB_NOT_SUPPORTED, "alter partition of materialized view is");
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
|
||||
Reference in New Issue
Block a user