From 39ba568f6774a223a531565767b8f3cf5230962f Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Sat, 14 Sep 2024 16:15:43 +0800 Subject: [PATCH] fix --- .../suites/account_p0/test_nereids_row_policy.groovy | 7 ++----- .../suites/compaction/test_full_compaction.groovy | 4 ---- .../dynamic_partition/test_dynamic_partition.groovy | 5 +---- 3 files changed, 3 insertions(+), 13 deletions(-) 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 6ae858997b11a0..987a4861ae918c 100644 --- a/regression-test/suites/account_p0/test_nereids_row_policy.groovy +++ b/regression-test/suites/account_p0/test_nereids_row_policy.groovy @@ -21,11 +21,8 @@ suite("test_nereids_row_policy") { def user='row_policy_user' def tokens = context.config.jdbcUrl.split('/') def url=tokens[0] + "//" + tokens[2] + "/" + dbName + "?" - def isCloudMode = { - def ret = sql_return_maparray """show backends""" - ret.Tag[0].contains("cloud_cluster_name") - } - def cloudMode = isCloudMode.call() + + def cloudMode = isCloudMode() //cloud-mode if (cloudMode) { def clusters = sql " SHOW CLUSTERS; " diff --git a/regression-test/suites/compaction/test_full_compaction.groovy b/regression-test/suites/compaction/test_full_compaction.groovy index 217a4da707cefb..b25cf85f85a085 100644 --- a/regression-test/suites/compaction/test_full_compaction.groovy +++ b/regression-test/suites/compaction/test_full_compaction.groovy @@ -19,10 +19,6 @@ import org.codehaus.groovy.runtime.IOGroovyMethods suite("test_full_compaction") { def tableName = "test_full_compaction" - def isCloudMode = { - def ret = sql_return_maparray """show backends""" - ret.Tag[0].contains("cloud_cluster_name") - } try { String backend_id; diff --git a/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition.groovy b/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition.groovy index ec626eaa6915d2..a4b3eb661768dd 100644 --- a/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition.groovy +++ b/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition.groovy @@ -88,10 +88,7 @@ suite("test_dynamic_partition") { assertEquals(result.get(0).Buckets.toInteger(), 3) sql "drop table dy_par_bucket_set_by_distribution" sql "drop table if exists dy_par_bad" - def isCloudMode = { - def ret = sql_return_maparray """show backends""" - ret.Tag[0].contains("cloud_cluster_name") - } + def isCloudMode = isCloudMode() // not support tag in cloud mode if (!isCloudMode) {