This is an automated email from the ASF dual-hosted git repository.
dataroaring 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 0407f05d81f [enhancement](sc-test) Optimize waitForSchemeChangeDone
(#31002)
0407f05d81f is described below
commit 0407f05d81fb55941659d5c950adde9c43133850
Author: kkop <[email protected]>
AuthorDate: Tue Feb 20 10:02:21 2024 +0800
[enhancement](sc-test) Optimize waitForSchemeChangeDone (#31002)
---
.../groovy/org/apache/doris/regression/suite/Suite.groovy | 11 ++++++++++-
1 file changed, 10 insertions(+), 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 84a84fa7a54..7d8a388b5ee 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
@@ -24,6 +24,7 @@ import com.google.common.util.concurrent.MoreExecutors
import com.google.gson.Gson
import groovy.json.JsonSlurper
import com.google.common.collect.ImmutableList
+import org.apache.commons.lang3.ObjectUtils
import org.apache.doris.regression.Config
import org.apache.doris.regression.action.BenchmarkAction
import org.apache.doris.regression.action.WaitForAction
@@ -522,8 +523,16 @@ class Suite implements GroovyInterceptable {
runAction(new BenchmarkAction(context), actionSupplier)
}
- void waitForSchemaChangeDone(Closure actionSupplier) {
+ void waitForSchemaChangeDone(Closure actionSupplier, String insertSql =
null, boolean cleanOperator = false,String tbName=null) {
runAction(new WaitForAction(context), actionSupplier)
+ if (ObjectUtils.isNotEmpty(insertSql)){
+ sql insertSql
+ }
+ if (cleanOperator==true){
+ if (ObjectUtils.isEmpty(tbName)) throw new
RuntimeException("tbName cloud not be null")
+ quickTest("", """ SELECT * FROM ${tbName} """)
+ sql """ DROP TABLE ${tbName} """
+ }
}
String getBrokerName() {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]