diff --git a/tests/pytest/query/queryGroupTbname.py b/tests/pytest/query/queryGroupTbname.py index 226f0220738748bdd5087867bb5256a903b0bc17..bb67809e60087f94ad7f92ca7515aa8ddfc43151 100644 --- a/tests/pytest/query/queryGroupTbname.py +++ b/tests/pytest/query/queryGroupTbname.py @@ -50,26 +50,6 @@ class TDTestCase: tdSql.query(f'select {table_name_sub1},{table_name_sub2},{table_name_sub3},{table_name_sub4},{table_name_sub5},{table_name_sub6},{table_name_sub7},{table_name_sub8},{table_name_sub9} from {table_name} where tbname in ("{table_name_sub1}","{table_name_sub2}","{table_name_sub3}","{table_name_sub4}","{table_name_sub5}","{table_name_sub6}","{table_name_sub7}","{table_name_sub8}","{table_name_sub9}") and ts >= "1980-01-01 00:00:00.000"') tdSql.checkRows(0) - - # TS-634 - tdLog.info("test case for bug TS-634") - tdSql.execute("create database test") - tdSql.execute("use test") - tdSql.execute("create table meters (ts TIMESTAMP,voltage INT) TAGS (tableid INT)") - tdSql.execute("CREATE TABLE t1 USING meters TAGS (1)") - tdSql.execute("CREATE TABLE t2 USING meters TAGS (2)") - - ts = 1605381041000 - for i in range(10): - tdSql.execute("INSERT INTO t1 values(%d, %d)" % (ts + i, random.randint(0, 100))) - tdSql.execute("INSERT INTO t2 values(%d, %d)" % (ts + i, random.randint(0, 100))) - - tdSql.query("select last_row(*), tbname from meters group by tbname order by ts desc") - tdSql.checkRows(2) - - tdSql.execute("INSERT INTO t2 values(now, 2)") - tdSql.query("select last_row(*), tbname from meters group by tbname order by ts desc") - tdSql.checkRows(2) # TS-634