This is an automated email from the ASF dual-hosted git repository.
hellostephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 6396e8c2f7d [regression-test](case) fix manager case bug (#46659)
6396e8c2f7d is described below
commit 6396e8c2f7d61988e5822979b8bbdfd3fb42ce7a
Author: shuke <[email protected]>
AuthorDate: Thu Jan 9 11:10:29 2025 +0800
[regression-test](case) fix manager case bug (#46659)
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [x] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [x] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---
.../suites/manager/test_manager_interface_1.groovy | 24 +++++++++++-----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/regression-test/suites/manager/test_manager_interface_1.groovy
b/regression-test/suites/manager/test_manager_interface_1.groovy
index 63aba5f8294..41b7a7ae145 100644
--- a/regression-test/suites/manager/test_manager_interface_1.groovy
+++ b/regression-test/suites/manager/test_manager_interface_1.groovy
@@ -504,7 +504,7 @@ suite('test_manager_interface_1',"p0") {
futures.add( thread {
sleep(1500)
- result = sql """
+ 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
"""
@@ -513,21 +513,21 @@ suite('test_manager_interface_1',"p0") {
def x = 0
def queryId = ""
for( int i =0 ;i < result.size();i++ ){
- assertTrue(result[i][0] != null ) // QueryId
+ assertTrue(result[i]["QUERY_ID"] != null ) // QueryId
- if ( result[i][9].contains("sleep(4.7676)") ){
+ if ( result[i]["SQL"].contains("sleep(4.7676)") ){
x = 1
- queryId = result[i][0]
+ queryId = result[i]["QUERY_ID"]
logger.info("result = ${queryId}}")
- assertTrue(result[i][2]!=null) // QUERY_TIME_MS
- assertTrue(result[i][14]!=null) // TASK_CPU_TIME_MS
- assertTrue(result[i][15].toBigInteger() ==0 ) // SCAN_ROWS
- assertTrue(result[i][16].toBigInteger() ==0)//SCAN_BYTES
- assertTrue(result[i][19].toBigInteger() ==0) //
SHUFFLE_SEND_BYTES
- assertTrue(result[i][20].toBigInteger() ==0) //
SHUFFLE_SEND_ROWS
- assertTrue(result[i][18]!=null) //
CURRENT_USED_MEMORY_BYTES
- assertTrue(result[i][22]!=null) // WORKLOAD_GROUP_NAME
+ assertTrue(result[i]["QUERY_TIME_MS"]!=null) //
QUERY_TIME_MS
+ assertTrue(result[i]["TASK_CPU_TIME_MS"]!=null) //
TASK_CPU_TIME_MS
+ assertTrue(result[i]["SCAN_ROWS"].toBigInteger() ==0 ) //
SCAN_ROWS
+ assertTrue(result[i]["SCAN_BYTES"].toBigInteger()
==0)//SCAN_BYTES
+ 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(x == 1)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]