[TD-45145]<test>: add testcase of stat_window function

This commit is contained in:
tomchon 2021-06-19 17:02:09 +08:00
parent 643807e663
commit a0be6d9288
1 changed files with 4 additions and 1 deletions

View File

@ -87,7 +87,10 @@ class TDTestCase:
tdSql.checkData(0, 9, 4.6)
tdSql.checkData(0, 10, 'True')
tdSql.query("select count(*),sum(t1),avg(t1),twa(t1),stddev(t15),leastsquares(t15,1,1),first(t10),spread(t15),t9 from dev_001 state_window(t9);")
# with where
tdSql.query("select avg(t15),t9 from dev_001 where t9='true' state_window(t9);")
tdSql.checkData(0, 0, 7)
tdSql.checkData(0, 1, 'True')
# error
tdSql.error("select count(*) from dev_001 state_window(t2)")