This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 1f3c0c1edc5 [improve](regression) Support qt_target_sql (#36442)
1f3c0c1edc5 is described below

commit 1f3c0c1edc5dfe816c3b98f348554dd4b739220e
Author: walter <w41te...@gmail.com>
AuthorDate: Wed Jun 19 09:40:29 2024 +0800

    [improve](regression) Support qt_target_sql (#36442)
    
    Cherry-pick #34236
---
 .../org/apache/doris/regression/suite/Suite.groovy   | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

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 f0ca33486da..82358185ab1 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
@@ -689,8 +689,9 @@ class Suite implements GroovyInterceptable {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getHiveDockerConnection(),  
(PreparedStatement) arg)
                 }else if (tag.contains("hive_remote")) {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getHiveRemoteConnection(),  
(PreparedStatement) arg)
-                }
-                else{
+                } else if (tag.contains("target_sql")) {
+                    tupleResult = 
JdbcUtils.executeToStringList(context.getTargetConnection(this), 
(PreparedStatement) arg)
+                } else {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getConnection(),  (PreparedStatement) arg)
                 }
             } else {
@@ -698,8 +699,9 @@ class Suite implements GroovyInterceptable {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getHiveDockerConnection(), (String) arg)
                 }else if (tag.contains("hive_remote")) {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getHiveRemoteConnection(), (String) arg)
-                }
-                else{
+                } else if (tag.contains("target_sql")) {
+                    tupleResult = 
JdbcUtils.executeToStringList(context.getTargetConnection(this), (String) arg)
+                } else {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getConnection(),  (String) arg)
                 }
             }
@@ -727,8 +729,9 @@ class Suite implements GroovyInterceptable {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getHiveDockerConnection(),  
(PreparedStatement) arg)
                 }else if (tag.contains("hive_remote")) {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getHiveRemoteConnection(),  
(PreparedStatement) arg)
-                }
-                else{
+                } else if (tag.contains("target_sql")) {
+                    tupleResult = 
JdbcUtils.executeToStringList(context.getTargetConnection(this), 
(PreparedStatement) arg)
+                } else {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getConnection(),  (PreparedStatement) arg)
                 }
             } else {
@@ -736,8 +739,9 @@ class Suite implements GroovyInterceptable {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getHiveDockerConnection(), (String) arg)
                 }else if (tag.contains("hive_remote")) {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getHiveRemoteConnection(), (String) arg)
-                }
-                else{
+                } else if (tag.contains("target_sql")) {
+                    tupleResult = 
JdbcUtils.executeToStringList(context.getTargetConnection(this), (String) arg)
+                } else {
                     tupleResult = 
JdbcUtils.executeToStringList(context.getConnection(),  (String) arg)
                 }
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to