From 5b65d5851d06576715ed586e7e2c99a81e108985 Mon Sep 17 00:00:00 2001 From: wangbo <506340561@qq.com> Date: Thu, 31 Oct 2024 20:38:29 +0800 Subject: [PATCH] +1 --- .../apache/doris/resource/workloadgroup/WorkloadGroup.java | 4 ++-- .../suites/workload_manager_p0/test_curd_wlg.groovy | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {