未验证 提交 28718b27 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

Hotfix/sangshuduo/ts 1230 taosdump for2.4 (#10642)

* remove -B from taosdump dump out

* update taos-tools
上级 834807fe
Subproject commit c7895975ca625b6380a48211c7b9102f967f6451 Subproject commit e15409c5184167a96a9fe9ade026387073443d2f
...@@ -20,6 +20,7 @@ from util.dnodes import * ...@@ -20,6 +20,7 @@ from util.dnodes import *
import string import string
import random import random
class TDTestCase: class TDTestCase:
def init(self, conn, logSql): def init(self, conn, logSql):
tdLog.debug("start to execute %s" % __file__) tdLog.debug("start to execute %s" % __file__)
...@@ -84,7 +85,7 @@ class TDTestCase: ...@@ -84,7 +85,7 @@ class TDTestCase:
os.makedirs(self.tmpdir) os.makedirs(self.tmpdir)
os.system( os.system(
"%staosdump --databases db -o %s -B 16384 -y" % "%staosdump --databases db -o %s -y" %
(binPath, self.tmpdir)) (binPath, self.tmpdir))
tdSql.execute("drop database db") tdSql.execute("drop database db")
...@@ -109,8 +110,13 @@ class TDTestCase: ...@@ -109,8 +110,13 @@ class TDTestCase:
# test case for TS-1225 # test case for TS-1225
tdSql.execute("create database test") tdSql.execute("create database test")
tdSql.execute("use test") tdSql.execute("use test")
tdSql.execute("create table stb(ts timestamp, c1 binary(16374), c2 binary(16374), c3 binary(16374)) tags(t1 nchar(256))") tdSql.execute(
tdSql.execute("insert into t1 using stb tags('t1') values(now, '%s', '%s', '%s')" % (self.generateString(16374), self.generateString(16374), self.generateString(16374))) "create table stb(ts timestamp, c1 binary(16374), c2 binary(16374), c3 binary(16374)) tags(t1 nchar(256))")
tdSql.execute(
"insert into t1 using stb tags('t1') values(now, '%s', '%s', '%s')" %
(self.generateString(16374),
self.generateString(16374),
self.generateString(16374)))
os.system("rm /tmp/*.sql") os.system("rm /tmp/*.sql")
os.system("rm /tmp/*.avro*") os.system("rm /tmp/*.avro*")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册