update case
This commit is contained in:
parent
418696316a
commit
38e5bb1a11
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue