This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 4919cfd0a06 [fix](regression-test) fix 
test_dynamic_partition_with_alter (#31164)
4919cfd0a06 is described below

commit 4919cfd0a068e427e108fff5fffdc733a02a6bb2
Author: yujun <[email protected]>
AuthorDate: Tue Feb 20 22:41:51 2024 +0800

    [fix](regression-test) fix test_dynamic_partition_with_alter (#31164)
---
 .../test_dynamic_partition_with_alter.groovy          | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git 
a/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition_with_alter.groovy
 
b/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition_with_alter.groovy
index a844ad7549d..d488a53812f 100644
--- 
a/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition_with_alter.groovy
+++ 
b/regression-test/suites/partition_p0/dynamic_partition/test_dynamic_partition_with_alter.groovy
@@ -38,14 +38,19 @@ suite("test_dynamic_partition_with_alter") {
     result = sql "show partitions from ${tbl}"
     assertEquals(7, result.size())
 
-    test {
-        sql "alter table ${tbl} set ('dynamic_partition.start' = 
'-2147483648')"
-        exception "Provide start or history_partition_num property"
-    }
+    try {
+        test {
+            sql "alter table ${tbl} set ('dynamic_partition.start' = 
'-2147483648')"
+            exception "Provide start or history_partition_num property"
+        }
 
-    test {
-        sql "alter table ${tbl} set ('dynamic_partition.start' = 
'-2147483647')"
-        exception "Too many dynamic partitions"
+        test {
+            sql "alter table ${tbl} set ('dynamic_partition.start' = 
'-2147483647')"
+            exception "Too many dynamic partitions"
+        }
+    } catch (Exception e) {
+        sql "drop table if exists ${tbl}"
+        throw e
     }
 
     // modify distributed column comment, then try to add too more dynamic 
partition


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to