This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new f701c89a628 [fix](cloud) Fix regression case `test_dynamic_partition` run in cloud mode (#31803) f701c89a628 is described below commit f701c89a6283983b8ccb39b7606781e03a822147 Author: deardeng <565620...@qq.com> 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: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org