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 8880c0081de [regression-test](fix) fix test_select_column_auth.groovy
bug (#46689)
8880c0081de is described below
commit 8880c0081de95ef0dc5ffe66dbaea7b0058dabc4
Author: shuke <[email protected]>
AuthorDate: Thu Jan 16 10:51:16 2025 +0800
[regression-test](fix) fix test_select_column_auth.groovy bug (#46689)
---
.../suites/auth_p0/test_select_column_auth.groovy | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/regression-test/suites/auth_p0/test_select_column_auth.groovy
b/regression-test/suites/auth_p0/test_select_column_auth.groovy
index 296b47975fb..ba1511c77c0 100644
--- a/regression-test/suites/auth_p0/test_select_column_auth.groovy
+++ b/regression-test/suites/auth_p0/test_select_column_auth.groovy
@@ -54,7 +54,22 @@ suite("test_select_column_auth","p0,auth") {
sql """create view ${dbName}.${mv_name} as select * from
${dbName}.${tableName};"""
sql """alter table ${dbName}.${tableName} add rollup
${rollup_name}(username)"""
- sleep(5 * 1000)
+
+ for (int i = 0; i < 20; ++i) {
+ def r = sql_return_maparray """show alter table rollup where
TableName='${tableName}' order by createtime desc limit 1"""
+ if (r.size() > 0) {
+ if ( r[0]["State"] == "FINISHED") {
+ break
+ } else if (r[0]["State"] == "CANCELLED") {
+ assertTrue(1==0)
+ } else {
+ sleep(1000)
+ }
+ }
+ sleep(1000)
+ }
+ sleep(1000)
+
createMV("""create materialized view ${mtmv_name} as select username from
${dbName}.${tableName}""")
sleep(5 * 1000)
sql """CREATE MATERIALIZED VIEW ${dbName}.${mtmv_name}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]