This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 679c7657f6e52cc84586be6d792641699c2b781b Author: deardeng <[email protected]> AuthorDate: Tue Mar 5 20:02:30 2024 +0800 [fix](cloud) Fix regression case `test_dynamic_partition` run in cloud mode (#31803) --- .../dynamic_partition/test_dynamic_partition.groovy | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 1a69dda4c74..b90b06f1df6 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,6 +88,13 @@ suite("test_dynamic_partition") { assertEquals(Integer.valueOf(result.get(0).get(8)), 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") + } + + // not support tag in cloud mode + if (!isCloudMode) { test { sql """ CREATE TABLE IF NOT EXISTS dy_par_bad ( k1 date NOT NULL, k2 varchar(20) NOT NULL, k3 int sum NOT NULL ) @@ -107,6 +114,8 @@ suite("test_dynamic_partition") { // check exception message contains exception "errCode = 2," } + } + sql "drop table if exists dy_par_bad" sql """ CREATE TABLE IF NOT EXISTS dy_par ( k1 datev2 NOT NULL, k2 varchar(20) NOT NULL, k3 int sum NOT NULL ) @@ -129,6 +138,8 @@ suite("test_dynamic_partition") { sql "drop table dy_par" // sql "drop table if exists dy_par_bad" + // not support tag in cloud mode + if (!isCloudMode) { test { sql """ CREATE TABLE IF NOT EXISTS dy_par_bad ( k1 datev2 NOT NULL, k2 varchar(20) NOT NULL, k3 int sum NOT NULL ) @@ -148,5 +159,6 @@ suite("test_dynamic_partition") { // check exception message contains exception "errCode = 2," } + } sql "drop table if exists dy_par_bad" } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
