diff --git a/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/WorkloadGroup.java b/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/WorkloadGroup.java index fed07492504f6ef..7d5e792ef714315 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/WorkloadGroup.java +++ b/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/WorkloadGroup.java @@ -433,9 +433,9 @@ private static void checkProperties(Map properties) throws DdlEx String[] tagArr = tagStr.split(","); for (String tag : tagArr) { try { - FeNameFormat.checkCommonName("workload group tag name", tag); + FeNameFormat.checkCommonName("workload group tag", tag); } catch (AnalysisException e) { - throw new DdlException("workload group tag name format is illegal, " + tagStr); + throw new DdlException("tag format is illegal, " + tagStr); } } } diff --git a/regression-test/suites/workload_manager_p0/test_curd_wlg.groovy b/regression-test/suites/workload_manager_p0/test_curd_wlg.groovy index f33b8da4f3d5321..7807578ea81bcf4 100644 --- a/regression-test/suites/workload_manager_p0/test_curd_wlg.groovy +++ b/regression-test/suites/workload_manager_p0/test_curd_wlg.groovy @@ -518,7 +518,7 @@ suite("test_crud_wlg") { // test workload group's tag property, cpu_hard_limit test { sql "create workload group tag_test properties('tag'=' a, b , c ');" - exception "Incorrect workload group tag name" + exception "tag format is illegal" } test {