提交 958d2454 编写于 作者: P Ping Xiao

[TD-4733]<test>: add test case for derivative function

上级 4066fb7c
......@@ -128,7 +128,14 @@ class TDTestCase:
def run(self):
tdSql.prepare()
self.insertAndCheckData()
self.insertAndCheckData()
tdSql.execute("create table st(ts timestamp, c1 int, c2 int) tags(id int)")
tdSql.execute("insert into dev1(ts, c1) using st tags(1) values(now, 1)")
tdSql.error("select derivative(c1, 10s, 0) from (select c1 from st)")
tdSql.query("select diff(c1) from (select derivative(c1, 1s, 0) c1 from dev1)")
tdSql.checkRows(0)
def stop(self):
tdSql.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册