Skip to content

Commit

Permalink
[fix](auth)fix case should grant after create view (#40108)
Browse files Browse the repository at this point in the history
cause by:#39597
  • Loading branch information
zddr authored Aug 30, 2024
1 parent 55de454 commit f852385
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,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 @@ -199,7 +198,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}"""
//cloud-mode
if (isCloudMode()) {
def clusters = sql " SHOW CLUSTERS; "
Expand Down

0 comments on commit f852385

Please sign in to comment.