Skip to content

Commit

Permalink
2.0 not support INSERT OVERWRITE yet
Browse files Browse the repository at this point in the history
  • Loading branch information
w41ter committed Sep 9, 2024
1 parent e3ffaa6 commit 3cc8f5c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions regression-test/suites/table-sync/test_add_partition.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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);
"""
Expand Down

0 comments on commit 3cc8f5c

Please sign in to comment.