From c9f62838e5a956a30bcb8eaefb753ce458948ab7 Mon Sep 17 00:00:00 2001 From: shuke987 Date: Thu, 9 Jan 2025 11:30:17 +0800 Subject: [PATCH 1/3] [regression-test](fix) manager case bug --- regression-test/suites/manager/test_manager_interface_1.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regression-test/suites/manager/test_manager_interface_1.groovy b/regression-test/suites/manager/test_manager_interface_1.groovy index 41b7a7ae145694..9a5125bd600456 100644 --- a/regression-test/suites/manager/test_manager_interface_1.groovy +++ b/regression-test/suites/manager/test_manager_interface_1.groovy @@ -527,7 +527,7 @@ suite('test_manager_interface_1',"p0") { assertTrue(result[i]["SHUFFLE_SEND_BYTES"].toBigInteger() ==0) // SHUFFLE_SEND_BYTES assertTrue(result[i]["SHUFFLE_SEND_ROWS"].toBigInteger() ==0) // SHUFFLE_SEND_ROWS assertTrue(result[i]["CURRENT_USED_MEMORY_BYTES"]!=null) // CURRENT_USED_MEMORY_BYTES - assertTrue(result[i]["WORKLOAD_GROUP_ID"]!=null) // WORKLOAD_GROUP_NAME + assertTrue(result[i]["WORKLOAD_GROUP_NAME"]!=null) // WORKLOAD_GROUP_NAME } } assertTrue(x == 1) From a735c8a75fa843b846efbb1e881bceb5c57fa713 Mon Sep 17 00:00:00 2001 From: shuke987 Date: Thu, 9 Jan 2025 14:22:34 +0800 Subject: [PATCH 2/3] 1 --- .../main/groovy/org/apache/doris/regression/suite/Suite.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy index 3995371db952da..4262a98e3fb8c1 100644 --- a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy +++ b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy @@ -459,7 +459,7 @@ class Suite implements GroovyInterceptable { // get all column names as list List columnNames = new ArrayList<>() for (int i = 0; i < meta.getColumnCount(); i++) { - columnNames.add(meta.getColumnName(i + 1)) + columnNames.add(meta.getColumnLabel(i + 1)) } // add result to res map list, each row is a map with key is column name From 66d5d593e574cfe1d76f96dbd1aa40527ed0167a Mon Sep 17 00:00:00 2001 From: shuke987 Date: Sat, 11 Jan 2025 14:24:23 +0800 Subject: [PATCH 3/3] 5 --- .../suites/manager/test_manager_interface_1.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/regression-test/suites/manager/test_manager_interface_1.groovy b/regression-test/suites/manager/test_manager_interface_1.groovy index 9a5125bd600456..2758e0ebe7a86c 100644 --- a/regression-test/suites/manager/test_manager_interface_1.groovy +++ b/regression-test/suites/manager/test_manager_interface_1.groovy @@ -504,6 +504,12 @@ suite('test_manager_interface_1',"p0") { futures.add( thread { sleep(1500) + result = sql """ + select a.*, b.*, c.NAME as WORKLOAD_GROUP_NAME from information_schema.active_queries a left join + information_schema.backend_active_tasks b on a.QUERY_ID = b.QUERY_ID left join information_schema.workload_groups c on a.WORKLOAD_GROUP_ID = c.ID + """ + logger.info("result = ${result}") + result = sql_return_maparray """ select a.*, b.*, c.NAME as WORKLOAD_GROUP_NAME from information_schema.active_queries a left join information_schema.backend_active_tasks b on a.QUERY_ID = b.QUERY_ID left join information_schema.workload_groups c on a.WORKLOAD_GROUP_ID = c.ID