Skip to content

Commit

Permalink
[fix](auth)fix case should grant after create view (#40108) (#40488)
Browse files Browse the repository at this point in the history
pick: #40108
  • Loading branch information
zddr authored Sep 9, 2024
1 parent 4084ff2 commit 2c588e2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;"""
Expand Down

0 comments on commit 2c588e2

Please sign in to comment.