From 36bee1f45d376bf1f0741c56430bda1d56a229f3 Mon Sep 17 00:00:00 2001 From: Murphy Date: Thu, 21 Mar 2024 19:05:34 -0700 Subject: [PATCH] fix Signed-off-by: Murphy --- .../java/com/starrocks/analysis/AlterMaterializedViewTest.java | 2 +- .../materialization/MVRewriteWithSchemaChangeTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/test/java/com/starrocks/analysis/AlterMaterializedViewTest.java b/fe/fe-core/src/test/java/com/starrocks/analysis/AlterMaterializedViewTest.java index 938f6c1f6a4e4..fa5ce9a142083 100644 --- a/fe/fe-core/src/test/java/com/starrocks/analysis/AlterMaterializedViewTest.java +++ b/fe/fe-core/src/test/java/com/starrocks/analysis/AlterMaterializedViewTest.java @@ -196,7 +196,7 @@ public void testAlterMVOnView() throws Exception { // try to active the mv connectContext.executeSql(String.format("alter materialized view %s active", mvName)); Assert.assertFalse(mv.isActive()); - Assert.assertEquals("Column schema not compatible: (`k2` bigint(20) NULL COMMENT \"\") " + + Assert.assertEquals("column schema not compatible: (`k2` bigint(20) NULL COMMENT \"\") " + "and (`k2` double NULL COMMENT \"\")", mv.getInactiveReason()); // use a illegal view schema, should active the mv correctly diff --git a/fe/fe-core/src/test/java/com/starrocks/sql/optimizer/rule/transformation/materialization/MVRewriteWithSchemaChangeTest.java b/fe/fe-core/src/test/java/com/starrocks/sql/optimizer/rule/transformation/materialization/MVRewriteWithSchemaChangeTest.java index b5a8cea4ae51b..0261c9d30bb83 100644 --- a/fe/fe-core/src/test/java/com/starrocks/sql/optimizer/rule/transformation/materialization/MVRewriteWithSchemaChangeTest.java +++ b/fe/fe-core/src/test/java/com/starrocks/sql/optimizer/rule/transformation/materialization/MVRewriteWithSchemaChangeTest.java @@ -132,7 +132,7 @@ public void testMVCacheInvalidAndReValid() throws Exception { cluster.runSql("test", "alter materialized view test_cache_mv1 active;"); Assert.fail("could not active the mv"); } catch (Exception e) { - Assert.assertTrue(e.getMessage(), e.getMessage().contains("Column schema not compatible")); + Assert.assertTrue(e.getMessage(), e.getMessage().contains("column schema not compatible")); } plan = getFragmentPlan(sql);