Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Sep 14, 2024
1 parent 542e83f commit 39ba568
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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; "
Expand Down
4 changes: 0 additions & 4 deletions regression-test/suites/compaction/test_full_compaction.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 39ba568

Please sign in to comment.