Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx committed Jan 24, 2024
1 parent f1427ba commit c327440
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ class Suite implements GroovyInterceptable {
runAction(new BenchmarkAction(context), actionSupplier)
}

void waitFor(Closure actionSupplier) {
void waitForSchemaChangeDone(Closure actionSupplier) {
runAction(new WaitForAction(context), actionSupplier)
}

Expand Down
4 changes: 2 additions & 2 deletions regression-test/framework/src/main/groovy/suite.gdsl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ bindAction("explain", "org.apache.doris.regression.action.ExplainAction")
bindAction("streamLoad", "org.apache.doris.regression.action.StreamLoadAction")
bindAction("httpTest", "org.apache.doris.regression.action.HttpCliAction")
bindAction("benchmark", "org.apache.doris.regression.action.BenchmarkAction")
bindAction("waitFor", "org.apache.doris.regression.action.WaitForAction")
bindAction("waitForSchemaChangeDone", "org.apache.doris.regression.action.WaitForAction")

// bind qt_xxx and order_qt_xxx methods
contributor([suiteContext]) {
Expand Down Expand Up @@ -81,7 +81,7 @@ contributor([suiteContext]) {
!enclosingCall("explain") &&
!enclosingCall("streamLoad") &&
!enclosingCall("httpTest") &&
!enclosingCall("waitFor"))) {
!enclosingCall("waitForSchemaChangeDone"))) {
// bind other suite method and field
def suiteClass = findClass(suiteClassName)
delegatesTo(suiteClass)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ suite("test_alter_table_column") {
MODIFY COLUMN value2 INT AFTER value3;
"""

waitFor {
waitForSchemaChangeDone {
sql """SHOW ALTER TABLE COLUMN WHERE IndexName='${tbName1}' ORDER BY createtime DESC LIMIT 1"""
time 60
}
Expand All @@ -50,7 +50,7 @@ suite("test_alter_table_column") {
DROP COLUMN value3;
"""

waitFor {
waitForSchemaChangeDone {
sql """SHOW ALTER TABLE COLUMN WHERE IndexName='${tbName1}' ORDER BY createtime DESC LIMIT 1"""
time 60
}
Expand Down Expand Up @@ -78,7 +78,7 @@ suite("test_alter_table_column") {
ADD COLUMN value2 INT SUM AFTER value1;
"""

waitFor {
waitForSchemaChangeDone {
sql """SHOW ALTER TABLE COLUMN WHERE IndexName='${tbName2}' ORDER BY createtime DESC LIMIT 1"""
time 60
}
Expand Down Expand Up @@ -113,7 +113,7 @@ suite("test_alter_table_column") {
ADD COLUMN value4 ARRAY<INT> NOT NULL DEFAULT '[]' AFTER value3;
"""

waitFor {
waitForSchemaChangeDone {
sql """SHOW ALTER TABLE COLUMN WHERE IndexName='${tbNameAddArray}' ORDER BY createtime DESC LIMIT 1"""
time 60
}
Expand Down Expand Up @@ -195,7 +195,7 @@ suite("test_alter_table_column") {
sql "alter table ${tbName3} add column v2 int sum NULL"


waitFor {
waitForSchemaChangeDone {
sql """SHOW ALTER TABLE COLUMN WHERE IndexName='${tbName3}' ORDER BY createtime DESC LIMIT 1"""
time 60
}
Expand Down

0 comments on commit c327440

Please sign in to comment.