提交 7c456ee2 编写于 作者: P Ping Xiao

test: add test case for TS-1586

上级 d6d513cc
......@@ -30,7 +30,7 @@ class TDTestCase:
self.ts = 1500074556514
self.csvfile = "/tmp/csvfile.csv"
self.rows = 100000
self.rows = 10000
def writeCSV(self):
with open(self.csvfile, 'w', encoding='utf-8', newline='') as csvFile:
......@@ -64,6 +64,12 @@ class TDTestCase:
tdSql.query("select * from stb")
tdSql.checkRows(self.rows * 2)
tdSql.execute("insert into t4 using stb tags(2, 'test2') file '%s' t5 using stb(t1) tags(5) file '%s'" % (self.csvfile, self.csvfile))
tdSql.query("select * from t4")
tdSql.checkRows(self.rows)
tdSql.query("select * from t5")
tdSql.checkRows(self.rows)
def stop(self):
tdSql.close()
tdLog.success("%s successfully executed" % __file__)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册