This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new aba00d7146b [Fix](executor)Fix workload reg test #35082
aba00d7146b is described below
commit aba00d7146bd8a235b8a3b514ca598181a59b6a4
Author: wangbo <[email protected]>
AuthorDate: Mon May 20 20:36:29 2024 +0800
[Fix](executor)Fix workload reg test #35082
---
regression-test/data/workload_manager_p0/test_check_wg.out | 3 +++
regression-test/suites/workload_manager_p0/test_check_wg.groovy | 3 ++-
.../suites/workload_manager_p0/test_workload_sched_policy.groovy | 2 ++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/regression-test/data/workload_manager_p0/test_check_wg.out
b/regression-test/data/workload_manager_p0/test_check_wg.out
index 1f0a440ba0b..dde3373fe6b 100644
--- a/regression-test/data/workload_manager_p0/test_check_wg.out
+++ b/regression-test/data/workload_manager_p0/test_check_wg.out
@@ -1,4 +1,7 @@
-- This file is automatically generated. You should know what you did if you
want to edit this
+-- !select_count --
+3
+
-- !select_wg --
normal
upgrade_g1
diff --git a/regression-test/suites/workload_manager_p0/test_check_wg.groovy
b/regression-test/suites/workload_manager_p0/test_check_wg.groovy
index 6c81338e703..5001bce1079 100644
--- a/regression-test/suites/workload_manager_p0/test_check_wg.groovy
+++ b/regression-test/suites/workload_manager_p0/test_check_wg.groovy
@@ -15,5 +15,6 @@
// specific language governing permissions and limitations
// under the License.
suite("test_check_wg") {
- qt_select_wg "select name from information_schema.workload_groups where
name in ('upgrade_g1','normal','upgrade_g2');"
+ qt_select_count "select count(1) from information_schema.workload_groups
where name in ('upgrade_g1','normal','upgrade_g2')"
+ qt_select_wg "select name from information_schema.workload_groups where
name in ('upgrade_g1','normal','upgrade_g2') order by name;"
}
\ No newline at end of file
diff --git
a/regression-test/suites/workload_manager_p0/test_workload_sched_policy.groovy
b/regression-test/suites/workload_manager_p0/test_workload_sched_policy.groovy
index c51a10f89b5..6dc1a28d463 100644
---
a/regression-test/suites/workload_manager_p0/test_workload_sched_policy.groovy
+++
b/regression-test/suites/workload_manager_p0/test_workload_sched_policy.groovy
@@ -121,6 +121,8 @@ suite("test_workload_sched_policy") {
sql """grant ADMIN_PRIV on *.*.* to test_workload_sched_user"""
// 1 create test_set_var_policy
+ sql """drop workload policy if exists test_set_var_policy;"""
+ sql """drop workload policy if exists test_set_var_policy2;"""
sql "create workload policy test_set_var_policy
conditions(username='test_workload_sched_user')" +
"actions(set_session_variable 'parallel_pipeline_task_num=33');"
def result1 = connect(user = 'test_workload_sched_user', password =
'12345', url = context.config.jdbcUrl) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]