提交 38e5bb1a 编写于 作者: W wenzhouwww@live.cn

update case

上级 41869631
......@@ -605,28 +605,28 @@ class TDTestCase:
tdSql.checkRows(0)
# nest query for last_row
# tdSql.query("select last_row(t1) from (select ts , c1 ,t1 from stb1)")
# tdSql.checkData(0,0,4)
# tdSql.query("select distinct(c1) ,t1 from stb1")
# tdSql.checkRows(20)
# tdSql.query("select last_row(c1) from (select _rowts , c1 ,t1 from stb1)")
# tdSql.checkData(0,0,None)
tdSql.query("select last_row(t1) from (select ts , c1 ,t1 from stb1)")
tdSql.checkData(0,0,4)
tdSql.query("select distinct(c1) ,t1 from stb1")
tdSql.checkRows(20)
tdSql.query("select last_row(c1) from (select _rowts , c1 ,t1 from stb1)")
tdSql.checkData(0,0,None)
# tdSql.query("select last_row(c1) from (select ts , c1 ,t1 from stb1)")
# tdSql.checkData(0,0,None)
tdSql.query("select last_row(c1) from (select ts , c1 ,t1 from stb1)")
tdSql.checkData(0,0,None)
# tdSql.query("select ts , last_row(c1) ,c1 from (select ts , c1 ,t1 from stb1)")
# tdSql.checkData(0,1,None,None)
tdSql.query("select ts , last_row(c1) ,c1 from (select ts , c1 ,t1 from stb1)")
tdSql.checkData(0,1,None,None)
# tdSql.query("select ts , last_row(c1) ,c1 from (select ts , max(c1) c1 ,t1 from stb1 where ts >now -1h and ts <now interval(10s) fill(value ,10 ))")
# tdSql.checkData(0,1,10)
# tdSql.checkData(0,1,10)
tdSql.query("select ts , last_row(c1) ,c1 from (select ts , max(c1) c1 ,t1 from stb1 where ts >now -1h and ts <now interval(10s) fill(value ,10 ))")
tdSql.checkData(0,1,10)
tdSql.checkData(0,1,10)
# tdSql.query("select ts , last_row(c1) ,c1 from (select count(c1) c1 from stb1 where ts >now -1h and ts <now interval(10s) fill(value ,10 ))")
# tdSql.checkData(0,1,10)
# tdSql.checkData(0,1,10)
tdSql.query("select ts , last_row(c1) ,c1 from (select count(c1) c1 from stb1 where ts >now -1h and ts <now interval(10s) fill(value ,10 ))")
tdSql.checkData(0,1,10)
tdSql.checkData(0,1,10)
# tdSql.error("select last_row(c1) ,c1 from (select count(c1) c1 from stb1 where ts >now -1h and ts <now interval(10s) fill(value ,10 ))")
tdSql.error("select last_row(c1) ,c1 from (select count(c1) c1 from stb1 where ts >now -1h and ts <now interval(10s) fill(value ,10 ))")
# tag filter with last_row function
tdSql.query("select last_row(t1) from testdb.stb1 where abs(t1)=1")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册