This is an automated email from the ASF dual-hosted git repository.
dataroaring 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 222289697d6 [improve](regression) Support qt_target_sql (#34236)
(#34270)
222289697d6 is described below
commit 222289697d67dddc3a51ccefe37098ec22c28ed7
Author: walter <[email protected]>
AuthorDate: Mon Apr 29 11:50:35 2024 +0800
[improve](regression) Support qt_target_sql (#34236) (#34270)
---
.../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 90a13d324c7..8f123bb8d67 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
@@ -850,8 +850,9 @@ class Suite implements GroovyInterceptable {
tupleResult =
JdbcUtils.executeToStringList(context.getHiveRemoteConnection(),
(PreparedStatement) arg)
} else if (tag.contains("arrow_flight_sql") ||
context.useArrowFlightSql()) {
tupleResult =
JdbcUtils.executeToStringList(context.getArrowFlightSqlConnection(),
(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 {
@@ -862,8 +863,9 @@ class Suite implements GroovyInterceptable {
} else if (tag.contains("arrow_flight_sql") ||
context.useArrowFlightSql()) {
tupleResult =
JdbcUtils.executeToStringList(context.getArrowFlightSqlConnection(),
(String) ("USE ${context.dbName};" + (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)
}
}
@@ -893,8 +895,9 @@ class Suite implements GroovyInterceptable {
tupleResult =
JdbcUtils.executeToStringList(context.getHiveRemoteConnection(),
(PreparedStatement) arg)
} else if (tag.contains("arrow_flight_sql") ||
context.useArrowFlightSql()) {
tupleResult =
JdbcUtils.executeToStringList(context.getArrowFlightSqlConnection(),
(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 {
@@ -905,8 +908,9 @@ class Suite implements GroovyInterceptable {
} else if (tag.contains("arrow_flight_sql") ||
context.useArrowFlightSql()) {
tupleResult =
JdbcUtils.executeToStringList(context.getArrowFlightSqlConnection(),
(String) ("USE ${context.dbName};" + (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: [email protected]
For additional commands, e-mail: [email protected]