From b87ec025804fc7a1a19ca55c1d66a8460cc65b9b Mon Sep 17 00:00:00 2001 From: wangjiaming0909 Date: Thu, 2 Jan 2025 13:49:09 +0800 Subject: [PATCH 1/3] add test for drop view crash --- .../0-others/view/non_marterial_view/test_view.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/system-test/0-others/view/non_marterial_view/test_view.py b/tests/system-test/0-others/view/non_marterial_view/test_view.py index 7e062143d2..059b016c3d 100644 --- a/tests/system-test/0-others/view/non_marterial_view/test_view.py +++ b/tests/system-test/0-others/view/non_marterial_view/test_view.py @@ -566,8 +566,18 @@ class TDTestCase: tdSql.execute(f"drop database {paraDict['dbName']}") tdSql.execute("drop database cdb;") tdLog.debug("Finish test case 'test_tmq_from_view'") + def test_TD_33390(self): + tdSql.execute('create database test') + tdSql.execute('create table test.nt(ts timestamp, c1 int)') + for i in range(0, 200): + tdSql.execute(f'create view test.view{i} as select * from test.nt') + tdSql.query("show test.views") + + for i in range(0, 200): + tdSql.execute(f'drop view test.view{i}') def run(self): + self.test_TD_33390() self.test_create_view_from_one_database() self.test_create_view_from_multi_database() self.test_create_view_name_params() From e066c1ed2909b4b9494bd1e2bedfd6c85e0b7be8 Mon Sep 17 00:00:00 2001 From: wangjiaming0909 Date: Thu, 2 Jan 2025 13:49:28 +0800 Subject: [PATCH 2/3] modify Jenkinsfile2 --- Jenkinsfile2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 1b2f28908c..52658434a4 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -165,7 +165,7 @@ def pre_test(){ script { sh ''' cd ${WK} - git checkout ''' + env.CHANGE_TARGET + ''' + git checkout fix/main/TD-33390 cd ${WKC} git checkout ''' + env.CHANGE_TARGET + ''' ''' @@ -274,7 +274,7 @@ def pre_test_win(){ script { bat ''' cd %WIN_INTERNAL_ROOT% - git checkout ''' + env.CHANGE_TARGET + ''' + git checkout fix/main/TD-33390 ''' bat ''' cd %WIN_COMMUNITY_ROOT% From e24fab999c108c0ad5447b55aaf7fc972bd6267b Mon Sep 17 00:00:00 2001 From: wangjiaming0909 Date: Thu, 2 Jan 2025 16:33:42 +0800 Subject: [PATCH 3/3] Revert "modify Jenkinsfile2" This reverts commit e066c1ed2909b4b9494bd1e2bedfd6c85e0b7be8. --- Jenkinsfile2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 52658434a4..1b2f28908c 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -165,7 +165,7 @@ def pre_test(){ script { sh ''' cd ${WK} - git checkout fix/main/TD-33390 + git checkout ''' + env.CHANGE_TARGET + ''' cd ${WKC} git checkout ''' + env.CHANGE_TARGET + ''' ''' @@ -274,7 +274,7 @@ def pre_test_win(){ script { bat ''' cd %WIN_INTERNAL_ROOT% - git checkout fix/main/TD-33390 + git checkout ''' + env.CHANGE_TARGET + ''' ''' bat ''' cd %WIN_COMMUNITY_ROOT%