提交 198a3d52 编写于 作者: P Ping Xiao

[TS-802]<test>(query): add test case

上级 3b2a37fe
......@@ -92,6 +92,16 @@ class TDTestCase:
tdSql.query("select top(avg_val,2) from(select avg(value) as avg_val from st where loc='beijing1' interval(8m) sliding(3m));")
tdSql.checkData(0, 1, 120)
# TS-802
tdSql.query("select first(*) from st interval(5m) limit 10")
tdSql.checkRows(10)
tdSql.query("select * from (select first(*) from st interval(5m) limit 10) order by ts")
tdSql.checkRows(10)
tdSql.query("select * from (select first(*) from st interval(5m) limit 10) order by ts desc")
tdSql.checkRows(10)
# clear env
testcaseFilename = os.path.split(__file__)[-1]
os.system("rm -rf ./insert_res.txt")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册