fix test case union.py

This commit is contained in:
wangjiaming0909 2024-12-23 12:12:32 +08:00
parent 868701c01f
commit 6523f977b4
1 changed files with 2 additions and 4 deletions

View File

@ -407,13 +407,11 @@ class TDTestCase:
##tdSql.execute("drop database ep_iot") ##tdSql.execute("drop database ep_iot")
def test_case_for_nodes_match_node(self): def test_case_for_nodes_match_node(self):
sql = "create table nt (ts timestamp, c1 int primary key, c2 int)" sql = "create table db.nt (ts timestamp, c1 int primary key, c2 int)"
tdSql.execute(sql, queryTimes=1) tdSql.execute(sql, queryTimes=1)
sql = 'select diff (ts) from (select * from tt union select * from tt order by c1, case when ts < now - 1h then ts + 1h else ts end) partition by c1, case when ts < now - 1h then ts + 1h else ts end' sql = 'select diff (ts) from (select * from db.tt union select * from db.tt order by c1, case when ts < now - 1h then ts + 1h else ts end) partition by c1, case when ts < now - 1h then ts + 1h else ts end'
tdSql.error(sql, -2147473917) tdSql.error(sql, -2147473917)
pass
def run(self): def run(self):
tdSql.prepare() tdSql.prepare()
self.test_TS_5630() self.test_TS_5630()