From 22fd5a7a152e19693a9b47151c5886593e49d52f Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Sat, 27 Apr 2024 21:57:53 +0800 Subject: [PATCH] fix: max topic number allow exist create --- tests/system-test/7-tmq/ins_topics_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/system-test/7-tmq/ins_topics_test.py b/tests/system-test/7-tmq/ins_topics_test.py index 8bf0a7e91a..1628e51166 100644 --- a/tests/system-test/7-tmq/ins_topics_test.py +++ b/tests/system-test/7-tmq/ins_topics_test.py @@ -38,6 +38,14 @@ class TDTestCase: tdSql.execute("create topic topic_2 with meta as stable db1.st") tdSql.execute("create topic topic_3 as select * from db1.nt") tdSql.execute("create topic topic_4 as select ts,c3,c5,t2 from db1.st") + for i in range(5, 21): + tdSql.execute(f"create topic topic_{i} as select ts,c3,c5,t2 from db1.st") + + tdSql.error("create topic topic_21 as select * from db1.nt") + tdSql.execute("create topic if not exists topic_1 as database db1") + for i in range(5, 21): + tdSql.execute(f"drop topic topic_{i}") + tdSql.query("select * from information_schema.ins_topics order by topic_name") tdSql.checkRows(4)