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 2c588e2738b [fix](auth)fix case should grant after create view 
(#40108) (#40488)
2c588e2738b is described below

commit 2c588e2738b6a842ca63a4792924d27a31082721
Author: zhangdong <493738...@qq.com>
AuthorDate: Mon Sep 9 11:21:52 2024 +0800

    [fix](auth)fix case should grant after create view (#40108) (#40488)
    
    pick: https://github.com/apache/doris/pull/40108
---
 .../suites/external_table_p0/tvf/test_s3_tvf_with_resource.groovy      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/regression-test/suites/external_table_p0/tvf/test_s3_tvf_with_resource.groovy 
b/regression-test/suites/external_table_p0/tvf/test_s3_tvf_with_resource.groovy
index 8fc03a42312..45796cad882 100644
--- 
a/regression-test/suites/external_table_p0/tvf/test_s3_tvf_with_resource.groovy
+++ 
b/regression-test/suites/external_table_p0/tvf/test_s3_tvf_with_resource.groovy
@@ -187,7 +187,6 @@ suite("test_s3_tvf_with_resource", "p0") {
     String viewName = "test_s3_tvf_with_resource_view"
     try_sql("DROP USER ${user}")
     sql """CREATE USER '${user}' IDENTIFIED BY '${pwd}'"""
-    sql """grant select_priv on ${db}.${viewName} to ${user}"""
     sql "drop view if exists ${viewName}"
     sql """
         create view ${viewName} as
@@ -198,7 +197,7 @@ suite("test_s3_tvf_with_resource", "p0") {
                            "resource" = "${resource_name}"
                        )  where k1 > 100  order by k3,k2,k1;
         """
-
+    sql """grant select_priv on ${db}.${viewName} to ${user}"""
     // not have usage priv, can not select tvf with resource
     connect(user=user, password="${pwd}", url=url) {
         sql """set enable_fallback_to_original_planner=false;"""


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

Reply via email to