diff --git a/regression-test/suites/db-sync-insert-overwrite/test_db_insert_overwrite.groovy b/regression-test/suites/db-sync-insert-overwrite/test_db_insert_overwrite.groovy index 2b3af810..1b8e103b 100644 --- a/regression-test/suites/db-sync-insert-overwrite/test_db_insert_overwrite.groovy +++ b/regression-test/suites/db-sync-insert-overwrite/test_db_insert_overwrite.groovy @@ -15,6 +15,12 @@ // specific language governing permissions and limitations // under the License. suite("test_db_insert_overwrite") { + def versions = sql_return_maparray "show variables like 'version_comment'" + if (versions[0].Value.contains('doris-2.0.')) { + logger.info("2.0 not support INSERT OVERWRITE yet, current version is: ${versions[0].Value}") + return + } + // The doris has two kind of insert overwrite handle logic: leagcy and nereids. // The first will // 1. create temp table diff --git a/regression-test/suites/table-sync/test_add_partition.groovy b/regression-test/suites/table-sync/test_add_partition.groovy index 07a9a222..185c09ba 100644 --- a/regression-test/suites/table-sync/test_add_partition.groovy +++ b/regression-test/suites/table-sync/test_add_partition.groovy @@ -273,6 +273,12 @@ suite("test_add_partition") { assertTrue(checkRestoreFinishTimesOf("${tableName}", 60)) + def versions = sql_return_maparray "show variables like 'version_comment'" + if (versions[0].Value.contains('doris-2.0.')) { + logger.info("2.0 not support INSERT OVERWRITE yet, current version is: ${versions[0].Value}") + return + } + sql """ INSERT OVERWRITE TABLE ${tableName} VALUES (1, 100); """