From 3c5a7c0a1920c7720c40113ff36032b61b7e51cf Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Thu, 4 Apr 2024 00:06:23 +0800 Subject: [PATCH] fix --- .../test_alter_table_property.groovy | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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 672d4df394ea2c..3809810f061413 100644 --- a/regression-test/suites/schema_change/test_alter_table_property.groovy +++ b/regression-test/suites/schema_change/test_alter_table_property.groovy @@ -49,14 +49,16 @@ suite("test_alter_table_property") { } 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"""