提交 8dc7b43d 编写于 作者: A Alex Duan

fix case sql error

上级 2a25eb8c
...@@ -27,14 +27,14 @@ class TDTestCase: ...@@ -27,14 +27,14 @@ class TDTestCase:
def run(self): def run(self):
rowNum = 200 rowNum = 200
tdSql.prepare() tdSql.prepare()
start = 1633017600 start = 1633017600000
tdLog.info("=============== step1") tdLog.info("=============== step1")
tdSql.execute("create table mt(ts timestamp, tbcol int, tbcol2 float) TAGS(tgcol int)") tdSql.execute("create table mt(ts timestamp, tbcol int, tbcol2 float) TAGS(tgcol int)")
for i in range(5): for i in range(5):
tdSql.execute("create table tb%d using mt tags(%d)" % (i, i)) tdSql.execute("create table tb%d using mt tags(%d)" % (i, i))
for j in range(rowNum): for j in range(rowNum):
tdSql.execute("insert into tb%d values(%d, %d, %d)" % (i, start+j, j, j)) tdSql.execute("insert into tb%d values(%d, %d, %d)" % (i, start+j*1000, j, j))
time.sleep(0.1) time.sleep(0.1)
tdLog.info("=============== step2") tdLog.info("=============== step2")
...@@ -53,7 +53,7 @@ class TDTestCase: ...@@ -53,7 +53,7 @@ class TDTestCase:
for i in range(5, 10): for i in range(5, 10):
tdSql.execute("create table tb%d using mt tags(%d)" % (i, i)) tdSql.execute("create table tb%d using mt tags(%d)" % (i, i))
for j in range(rowNum): for j in range(rowNum):
tdSql.execute("insert into tb%d values(%d, %d, %d)" % (i, start+j, j, j)) tdSql.execute("insert into tb%d values(%d, %d, %d)" % (i, start+j*1000, j, j))
tdLog.info("=============== step5") tdLog.info("=============== step5")
maxValue = 0 maxValue = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册