Skip to content

Commit

Permalink
fix files after cherry pick
Browse files Browse the repository at this point in the history
  • Loading branch information
shuke987 committed Dec 23, 2024
1 parent 213e54a commit 00c9989
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ suite("test_nereids_row_policy") {
def url=tokens[0] + "//" + tokens[2] + "/" + dbName + "?"

def assertQueryResult = { size ->
def result1 = connect(user=user, password='123abc!@#', url=url) {
def result1 = connect(user, '123abc!@#', url) {
sql "set enable_nereids_planner = false"
sql "SELECT * FROM ${tableName}"
}
def result2 = connect(user=user, password='123abc!@#', url=url) {
def result2 = connect(user, '123abc!@#', url) {
sql "set enable_nereids_planner = true"
sql "set enable_fallback_to_original_planner = false"
sql "SELECT * FROM ${tableName}"
}
connect(user=user, password='123abc!@#', url=url) {
connect(user, '123abc!@#', url) {
sql "set enable_nereids_planner = true"
sql "set enable_fallback_to_original_planner = false"
test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ suite ("test_follower_consistent_auth","p0,auth") {
assertTrue(res == [])
}
sql """GRANT USAGE_PRIV ON RESOURCE ${rg} TO ${user};"""
connect(user=user, password="${pwd}", url=url_tmp1) {
connect(user, "${pwd}", url_tmp1) {
def res = sql """SHOW RESOURCES;"""
assertTrue(res.size == 10)
}
connect(user=user, password="${pwd}", url=new_jdbc_url) {
connect(user, "${pwd}", new_jdbc_url) {
def res = sql """SHOW RESOURCES;"""
assertTrue(res.size == 10)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ suite("test_jdbc_call", "p0,external,doris,external_docker,external_docker_doris
sql """create user ${user2}""";
sql """grant load_priv, select_priv on *.*.* to ${user2}"""

def result1 = connect(user="${user1}", password="", url=context.config.jdbcUrl) {
def result1 = connect("${user1}", "", context.config.jdbcUrl) {
sql """set enable_nereids_planner=true;"""
sql """set enable_fallback_to_original_planner=false;"""
test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ suite("test_s3_tvf_with_resource", "p0") {
"""
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) {
connect(user, "${pwd}", url) {
sql """set enable_fallback_to_original_planner=false;"""
test {
sql """set enable_fallback_to_original_planner=false;"""
Expand All @@ -216,7 +216,7 @@ suite("test_s3_tvf_with_resource", "p0") {
}

// only have select_priv of view,can select view with resource
connect(user=user, password="${pwd}", url=url) {
connect(user, "${pwd}", url) {
sql """SELECT * FROM ${db}.${viewName};"""
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ suite('nereids_insert_auth') {
try_sql("DROP USER ${user}")
sql """CREATE USER '${user}' IDENTIFIED BY '${pwd}'"""

connect(user=user, password="${pwd}", url=url) {
connect(user, "${pwd}", url) {
try {
sql """ insert into ${db}.${t1} values (1, 1) """
fail()
Expand Down
2 changes: 1 addition & 1 deletion regression-test/suites/query_p0/test_row_policy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ suite("test_row_policy") {
sql """DROP ROW POLICY IF EXISTS policy_01 ON ${tableName} FOR ${user}"""
sql """CREATE ROW POLICY IF NOT EXISTS policy_01 ON ${tableName} AS restrictive TO ${user} USING(id=1)"""

connect(user=user, password='123456', url=url) {
connect(user, '123456', url) {
sql "set enable_nereids_planner = false"
sql "SELECT * FROM ${tableName} a JOIN ${tableName} b ON a.id = b.id"
}
Expand Down

0 comments on commit 00c9989

Please sign in to comment.