disable alter partition of materialized view
This commit is contained in:
		@ -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