diff --git a/regression-test/suites/account_p0/test_nereids_row_policy.groovy b/regression-test/suites/account_p0/test_nereids_row_policy.groovy index 59edd884d5e990..df78be5cd4c1aa 100644 --- a/regression-test/suites/account_p0/test_nereids_row_policy.groovy +++ b/regression-test/suites/account_p0/test_nereids_row_policy.groovy @@ -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 { diff --git a/regression-test/suites/auth_p0/test_master_slave_consistency_auth.groovy b/regression-test/suites/auth_p0/test_master_slave_consistency_auth.groovy index 7d6551ebf41dc7..407852f176a66a 100644 --- a/regression-test/suites/auth_p0/test_master_slave_consistency_auth.groovy +++ b/regression-test/suites/auth_p0/test_master_slave_consistency_auth.groovy @@ -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) } diff --git a/regression-test/suites/external_table_p0/jdbc/test_jdbc_call.groovy b/regression-test/suites/external_table_p0/jdbc/test_jdbc_call.groovy index 77c8f97c7d0e75..ef535ce9a41ad3 100644 --- a/regression-test/suites/external_table_p0/jdbc/test_jdbc_call.groovy +++ b/regression-test/suites/external_table_p0/jdbc/test_jdbc_call.groovy @@ -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 { 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 45796cad882f64..9c97c701bed77f 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 @@ -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;""" @@ -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};""" } diff --git a/regression-test/suites/nereids_p0/insert_into_table/insert_auth.groovy b/regression-test/suites/nereids_p0/insert_into_table/insert_auth.groovy index 2a6a1c9753d959..969fcb5e731d86 100644 --- a/regression-test/suites/nereids_p0/insert_into_table/insert_auth.groovy +++ b/regression-test/suites/nereids_p0/insert_into_table/insert_auth.groovy @@ -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() diff --git a/regression-test/suites/query_p0/test_row_policy.groovy b/regression-test/suites/query_p0/test_row_policy.groovy index 1f265fe775b84d..371901704fbb1c 100644 --- a/regression-test/suites/query_p0/test_row_policy.groovy +++ b/regression-test/suites/query_p0/test_row_policy.groovy @@ -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" }