From 12f413768168502f696013abf1290a9b13dcf5c5 Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Sat, 28 Aug 2021 14:52:44 +0800 Subject: [PATCH 1/2] [TD-6387] fetch over 100000 from super table --- tests/pytest/query/query.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/pytest/query/query.py b/tests/pytest/query/query.py index 8cec38780e..c759e77668 100644 --- a/tests/pytest/query/query.py +++ b/tests/pytest/query/query.py @@ -25,6 +25,18 @@ class TDTestCase: self.ts = 1538548685000 + def bug_6387(self): + tdSql.execute("create database bug6387 ") + tdSql.execute("use bug6387 ") + tdSql.execute("create table test(ts timestamp, c1 int) tags(t1 int)") + for i in range(5000): + sql = "insert into t%d using test tags(1) values " % i + for j in range(21): + sql = sql + "(now+%ds,%d)" % (j ,j ) + tdSql.execute(sql) + tdSql.query("select count(*) from test interval(1s) group by tbname") + tdSql.checkData(0,1,1) + def run(self): tdSql.prepare() @@ -121,6 +133,9 @@ class TDTestCase: tdSql.query("select * from tb0") tdSql.checkRows(1) + + #For jira: https://jira.taosdata.com:18080/browse/TD-6387 + self.bug_6387() def stop(self): From 33254ace8a553076613aac56ae2edd7908ed0cb6 Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Sat, 28 Aug 2021 15:26:15 +0800 Subject: [PATCH 2/2] add query/query.py in fulltest.sh --- tests/pytest/fulltest.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/pytest/fulltest.sh b/tests/pytest/fulltest.sh index 313ae787d2..886e2a365e 100755 --- a/tests/pytest/fulltest.sh +++ b/tests/pytest/fulltest.sh @@ -389,6 +389,7 @@ python3 ./test.py -f insert/schemalessInsert.py python3 ./test.py -f alter/alterColMultiTimes.py python3 ./test.py -f query/queryWildcardLength.py python3 ./test.py -f query/queryTbnameUpperLower.py +python3 ./test.py -f query/query.py #======================p4-end===============