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 71377498e63 [fix](case) ignore single_replica_compaction in cloud mode 
(#33072)
71377498e63 is described below

commit 71377498e638f1c14330b54302cd2bda3b65384e
Author: Yongqiang YANG <98214048+dataroar...@users.noreply.github.com>
AuthorDate: Thu Apr 4 13:22:31 2024 +0800

    [fix](case) ignore single_replica_compaction in cloud mode (#33072)
---
 .../test_stream_load_move_memtable.groovy          |  2 +-
 .../schema_change/test_alter_table_property.groovy | 32 ++++++++++++----------
 .../schema_change_p0/test_rename_column.groovy     |  4 +--
 3 files changed, 21 insertions(+), 17 deletions(-)

diff --git 
a/regression-test/suites/load_p0/stream_load/test_stream_load_move_memtable.groovy
 
b/regression-test/suites/load_p0/stream_load/test_stream_load_move_memtable.groovy
index 09d9e57bf6e..cf8b7e63217 100644
--- 
a/regression-test/suites/load_p0/stream_load/test_stream_load_move_memtable.groovy
+++ 
b/regression-test/suites/load_p0/stream_load/test_stream_load_move_memtable.groovy
@@ -878,7 +878,7 @@ suite("test_stream_load_move_memtable", "p0") {
     """
 
     sql """create USER ddd IDENTIFIED BY '123456test!'"""
-    sql """GRANT LOAD_PRIV ON *.* TO 'ddd';"""
+    sql """GRANT LOAD_PRIV ON *.* TO 'ddd'@'%';"""
 
     streamLoad {
         table "${tableName13}"
diff --git 
a/regression-test/suites/schema_change/test_alter_table_property.groovy 
b/regression-test/suites/schema_change/test_alter_table_property.groovy
index 1b9b5f810c7..3809810f061 100644
--- a/regression-test/suites/schema_change/test_alter_table_property.groovy
+++ b/regression-test/suites/schema_change/test_alter_table_property.groovy
@@ -37,24 +37,28 @@ suite("test_alter_table_property") {
     logger.info("${showResult1}")
     
assertTrue(showResult1.toString().containsIgnoreCase('"enable_single_replica_compaction"
 = "false"'))
 
-    sql """
-        alter table ${tableName} set ("enable_single_replica_compaction" = 
"true")
-        """
-    sql """sync"""
+    if (!isCloudMode()) {
+        sql """
+            alter table ${tableName} set ("enable_single_replica_compaction" = 
"true")
+            """
+        sql """sync"""
 
-    def showResult2 = sql """show create table ${tableName}"""
-    logger.info("${showResult2}")
-    
assertTrue(showResult2.toString().containsIgnoreCase('"enable_single_replica_compaction"
 = "true"'))
+        def showResult2 = sql """show create table ${tableName}"""
+        logger.info("${showResult2}")
+        
assertTrue(showResult2.toString().containsIgnoreCase('"enable_single_replica_compaction"
 = "true"'))
+    }
 
     
assertTrue(showResult1.toString().containsIgnoreCase('"disable_auto_compaction" 
= "false"'))
-    sql """
-        alter table ${tableName} set ("disable_auto_compaction" = "true")
-        """
-    sql """sync"""
 
-    def showResult3 = sql """show create table ${tableName}"""
-    logger.info("${showResult3}")
-    
assertTrue(showResult3.toString().containsIgnoreCase('"disable_auto_compaction" 
= "true"'))
+    if (!isCloudMode()) {
+        sql """
+            alter table ${tableName} set ("disable_auto_compaction" = "true")
+            """
+        sql """sync"""
+        def showResult3 = sql """show create table ${tableName}"""
+        logger.info("${showResult3}")
+        
assertTrue(showResult3.toString().containsIgnoreCase('"disable_auto_compaction" 
= "true"'))
+    }
 
     sql """ DROP TABLE IF EXISTS ${tableName} """
     sql """sync"""
diff --git a/regression-test/suites/schema_change_p0/test_rename_column.groovy 
b/regression-test/suites/schema_change_p0/test_rename_column.groovy
index 3872bc5f960..2cc3c5c86e4 100644
--- a/regression-test/suites/schema_change_p0/test_rename_column.groovy
+++ b/regression-test/suites/schema_change_p0/test_rename_column.groovy
@@ -126,8 +126,8 @@ suite ("test_rename_column") {
         BUCKETS 8
         PROPERTIES ( "replication_num" = "1" , "light_schema_change" = "false")
         """
-    test {
-        if (!isCloudMode()) {
+    if (!isCloudMode()) {
+        test {
             sql """ ALTER table ${tableName} RENAME COLUMN  date new_date """
             exception "not implemented"
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to