From a5e577652dcdb3ba06154fc03ffbc970b60baf80 Mon Sep 17 00:00:00 2001 From: zhangdong <493738387@qq.com> Date: Fri, 30 Aug 2024 15:14:52 +0800 Subject: [PATCH] [fix](auth)fix case should grant after create view (#40108) cause by:https://github.com/apache/doris/pull/39597 --- .../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 8fc03a42312b2b..45796cad882f64 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;"""