Skip to content

Commit e8615e1

Browse files
branch-2.1: [fix](test)Fix the unstable test. #50691 (#50760)
Cherry-picked from #50691 Co-authored-by: wuwenchi <wuwenchi@selectdb.com>
1 parent 1a16493 commit e8615e1

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

regression-test/suites/external_table_p0/iceberg/write/test_iceberg_insert_overwrite_with_empty_table.groovy

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ suite("test_iceberg_insert_overwrite_with_empty_table", "p0,external,doris,exter
4848

4949
sql """ drop table if exists ${db1}.${tb1} """
5050
sql """ drop table if exists ${db1}.${tb2} """
51-
sql """ drop database if exists ${db1} """
51+
sql """ drop table if exists ${db1}.${tb3} """
5252

53-
sql """ create database ${db1} """
53+
sql """ create database if not exists ${db1} """
5454
sql """ create table ${db1}.${tb1} (id int, val int) partition by list (val)() """
5555
sql """ create table ${db1}.${tb2} (id int, val int) """
5656
sql """ create table ${db1}.${tb3} (id int, val int) """
@@ -68,10 +68,4 @@ suite("test_iceberg_insert_overwrite_with_empty_table", "p0,external,doris,exter
6868
order_qt_q2 """ select * from ${tb1} """ // should have 3 records
6969
order_qt_q3 """ select * from ${tb2} """ // should have no records
7070

71-
sql """ drop table ${db1}.${tb1} """
72-
sql """ drop table ${db1}.${tb2} """
73-
sql """ drop table ${db1}.${tb3} """
74-
sql """ drop database ${db1} """
75-
sql """ drop catalog ${catalog_name} """
76-
7771
}

0 commit comments

Comments
 (0)