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

yiguolei 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 115834d1ddd Revert "[fix](merge-cloud) fix no cluster for common user 
(#32097)" (#32457)
115834d1ddd is described below

commit 115834d1ddd1abaf4b9f74874d5e4923e1d0aaba
Author: Dongyang Li <hello_step...@qq.com>
AuthorDate: Tue Mar 19 15:06:39 2024 +0800

    Revert "[fix](merge-cloud) fix no cluster for common user (#32097)" (#32457)
    
    This reverts commit 3f4ae002a8cf932dced6166353b7bdbe5b99354f.
    
    Co-authored-by: stephen <hello-step...@qq.com>
---
 .../tvf/test_insert_from_tvf_with_common_user.groovy              | 8 --------
 .../suites/load_p0/stream_load/test_stream_load.groovy            | 8 --------
 2 files changed, 16 deletions(-)

diff --git 
a/regression-test/suites/external_table_p0/tvf/test_insert_from_tvf_with_common_user.groovy
 
b/regression-test/suites/external_table_p0/tvf/test_insert_from_tvf_with_common_user.groovy
index 56cc6aa40c9..1d76ee15f36 100644
--- 
a/regression-test/suites/external_table_p0/tvf/test_insert_from_tvf_with_common_user.groovy
+++ 
b/regression-test/suites/external_table_p0/tvf/test_insert_from_tvf_with_common_user.groovy
@@ -88,14 +88,6 @@ suite("test_insert_from_tvf_with_common_user", "p0") {
     sql """create user ${common_user} identified by '12345'"""
     sql """GRANT SELECT_PRIV,LOAD_PRIV,ALTER_PRIV,CREATE_PRIV,DROP_PRIV ON 
*.*.* TO '${common_user}'@'%';"""
 
-     //cloud-mode
-    if (isCloudMode()) {
-        def clusters = sql " SHOW CLUSTERS; "
-        assertTrue(!clusters.isEmpty())
-        def validCluster = clusters[0][0]
-        sql """GRANT USAGE_PRIV ON CLUSTER ${validCluster} TO 
${common_user}""";
-    }
-
     connect(user = "${common_user}", password = '12345', url = 
context.config.jdbcUrl) {
         sql """ use regression_test_external_table_p0_tvf """
 
diff --git a/regression-test/suites/load_p0/stream_load/test_stream_load.groovy 
b/regression-test/suites/load_p0/stream_load/test_stream_load.groovy
index 628fe278d52..6c002b2d29b 100644
--- a/regression-test/suites/load_p0/stream_load/test_stream_load.groovy
+++ b/regression-test/suites/load_p0/stream_load/test_stream_load.groovy
@@ -1024,14 +1024,6 @@ suite("test_stream_load", "p0") {
     sql """create USER common_user@'%' IDENTIFIED BY '123456test!'"""
     sql """GRANT LOAD_PRIV ON *.* TO 'common_user'@'%';"""
 
-     //cloud-mode
-    if (isCloudMode()) {
-        def clusters = sql " SHOW CLUSTERS; "
-        assertTrue(!clusters.isEmpty())
-        def validCluster = clusters[0][0]
-        sql """GRANT USAGE_PRIV ON CLUSTER ${validCluster} TO common_user""";
-    }
-
     streamLoad {
         table "${tableName13}"
 


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

Reply via email to