diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java index 1f6c693360..4f153f6eb1 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java @@ -1548,7 +1548,8 @@ public class OlapTable extends Table { public void checkNormalStateForAlter() throws DdlException { if (state != OlapTableState.NORMAL) { - throw new DdlException("Table[" + name + "]'s state is not NORMAL. Do not allow doing ALTER ops"); + throw new DdlException("Table[" + name + "]'s state(" + state.toString() + + ") is not NORMAL. Do not allow doing ALTER ops"); } } diff --git a/regression-test/suites/schema_change/test_alter_table_status.groovy b/regression-test/suites/schema_change/test_alter_table_status.groovy index 0fda21f33f..16e5cbcea4 100644 --- a/regression-test/suites/schema_change/test_alter_table_status.groovy +++ b/regression-test/suites/schema_change/test_alter_table_status.groovy @@ -35,7 +35,7 @@ suite("test_alter_table_status") { // try alter table comment test { sql """ ALTER TABLE ${tbName1} MODIFY COMMENT 'test'; """ - exception "Table[${tbName1}]'s state is not NORMAL. Do not allow doing ALTER ops" + exception "Table[alter_table_status]'s state(ROLLUP) is not NORMAL. Do not allow doing ALTER ops" } // set table state to NORMAL