Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
027f8560
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
027f8560
编写于
7月 04, 2023
作者:
H
Hui Li
提交者:
GitHub
7月 04, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #21888 from taosdata/fix/TS-3584-2.6
enh: update latest taos-tools
上级
ae1d1e5d
729b533b
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
26 addition
and
24 deletion
+26
-24
src/kit/taos-tools
src/kit/taos-tools
+1
-1
tests/pytest/tools/taosdumpTest.py
tests/pytest/tools/taosdumpTest.py
+3
-3
tests/pytest/tools/taosdumpTest2.py
tests/pytest/tools/taosdumpTest2.py
+3
-3
tests/pytest/tools/taosdumpTestNanoSupport.py
tests/pytest/tools/taosdumpTestNanoSupport.py
+9
-9
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestInsertWithJson-illegalData.py
...s/taosbenchmark/taosdemoTestInsertWithJson-illegalData.py
+2
-2
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestInsertWithJsonSml-illegalData.py
...aosbenchmark/taosdemoTestInsertWithJsonSml-illegalData.py
+2
-1
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestInsertWithJsonSml.py
...taos-tools/taosbenchmark/taosdemoTestInsertWithJsonSml.py
+4
-4
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestInsertWithJsonStmt-illegalData.py
...osbenchmark/taosdemoTestInsertWithJsonStmt-illegalData.py
+2
-1
未找到文件。
taos-tools
@
ca597201
比较
43787023
...
ca597201
Subproject commit
43787023f9816d2f148defaec36faff600ddaab1
Subproject commit
ca5972018e750ca69ad3edb1e0d34e1fe8b80a3a
tests/pytest/tools/taosdumpTest.py
浏览文件 @
027f8560
...
@@ -94,9 +94,9 @@ class TDTestCase:
...
@@ -94,9 +94,9 @@ class TDTestCase:
else
:
else
:
tdLog
.
info
(
"taosdump found: %s"
%
binPath
)
tdLog
.
info
(
"taosdump found: %s"
%
binPath
)
os
.
system
(
"%s
-y
--databases db -o ./taosdumptest/tmp1"
%
binPath
)
os
.
system
(
"%s --databases db -o ./taosdumptest/tmp1"
%
binPath
)
os
.
system
(
os
.
system
(
"%s
-y
--databases db1 -o ./taosdumptest/tmp2"
%
"%s --databases db1 -o ./taosdumptest/tmp2"
%
binPath
)
binPath
)
tdSql
.
execute
(
"drop database db"
)
tdSql
.
execute
(
"drop database db"
)
...
@@ -177,7 +177,7 @@ class TDTestCase:
...
@@ -177,7 +177,7 @@ class TDTestCase:
tdSql
.
query
(
"show stables"
)
tdSql
.
query
(
"show stables"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkRows
(
2
)
os
.
system
(
os
.
system
(
"%s
-y
--databases db12312313231231321312312312_323 -o ./taosdumptest/tmp1"
%
"%s --databases db12312313231231321312312312_323 -o ./taosdumptest/tmp1"
%
binPath
)
binPath
)
tdSql
.
execute
(
"drop database db12312313231231321312312312_323"
)
tdSql
.
execute
(
"drop database db12312313231231321312312312_323"
)
os
.
system
(
"%s -i ./taosdumptest/tmp1"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/tmp1"
%
binPath
)
...
...
tests/pytest/tools/taosdumpTest2.py
浏览文件 @
027f8560
...
@@ -97,7 +97,7 @@ class TDTestCase:
...
@@ -97,7 +97,7 @@ class TDTestCase:
tdSql
.
query
(
"show databases"
)
tdSql
.
query
(
"show databases"
)
tdSql
.
checkRows
(
0
)
tdSql
.
checkRows
(
0
)
os
.
system
(
"%s -i ./taosdumptest/tmp
-y
"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/tmp "
%
binPath
)
tdSql
.
query
(
"show databases"
)
tdSql
.
query
(
"show databases"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkRows
(
1
)
...
@@ -125,13 +125,13 @@ class TDTestCase:
...
@@ -125,13 +125,13 @@ class TDTestCase:
os
.
system
(
"rm ./taosdumptest/tmp/*.sql"
)
os
.
system
(
"rm ./taosdumptest/tmp/*.sql"
)
os
.
system
(
"rm ./taosdumptest/tmp/*.avro*"
)
os
.
system
(
"rm ./taosdumptest/tmp/*.avro*"
)
os
.
system
(
"rm -rf ./taosdumptest/tmp/taosdump.*"
)
os
.
system
(
"rm -rf ./taosdumptest/tmp/taosdump.*"
)
os
.
system
(
"%s -D test -o ./taosdumptest/tmp
-y
"
%
binPath
)
os
.
system
(
"%s -D test -o ./taosdumptest/tmp "
%
binPath
)
tdSql
.
execute
(
"drop database test"
)
tdSql
.
execute
(
"drop database test"
)
tdSql
.
query
(
"show databases"
)
tdSql
.
query
(
"show databases"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkRows
(
1
)
os
.
system
(
"%s -i ./taosdumptest/tmp
-y
"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/tmp "
%
binPath
)
tdSql
.
execute
(
"use test"
)
tdSql
.
execute
(
"use test"
)
tdSql
.
error
(
"show vnodes '' "
)
tdSql
.
error
(
"show vnodes '' "
)
...
...
tests/pytest/tools/taosdumpTestNanoSupport.py
浏览文件 @
027f8560
...
@@ -134,15 +134,15 @@ class TDTestCase:
...
@@ -134,15 +134,15 @@ class TDTestCase:
# dump all data
# dump all data
os
.
system
(
os
.
system
(
"%s
-y
-g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
"%s -g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
binPath
)
binPath
)
# dump part data with -S -E
# dump part data with -S -E
os
.
system
(
os
.
system
(
'%s
-y
-g --databases timedb1 -S 1625068810000000000 -E 1625068860000000000 -o ./taosdumptest/dumptmp2 '
%
'%s -g --databases timedb1 -S 1625068810000000000 -E 1625068860000000000 -o ./taosdumptest/dumptmp2 '
%
binPath
)
binPath
)
os
.
system
(
os
.
system
(
'%s
-y
-g --databases timedb1 -S 1625068810000000000 -o ./taosdumptest/dumptmp3 '
%
'%s -g --databases timedb1 -S 1625068810000000000 -o ./taosdumptest/dumptmp3 '
%
binPath
)
binPath
)
tdSql
.
execute
(
"drop database timedb1"
)
tdSql
.
execute
(
"drop database timedb1"
)
...
@@ -200,14 +200,14 @@ class TDTestCase:
...
@@ -200,14 +200,14 @@ class TDTestCase:
self
.
createdb
(
precision
=
"us"
)
self
.
createdb
(
precision
=
"us"
)
os
.
system
(
os
.
system
(
"%s
-y
-g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
"%s -g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
binPath
)
binPath
)
os
.
system
(
os
.
system
(
'%s
-y
-g --databases timedb1 -S 1625068810000000 -E 1625068860000000 -o ./taosdumptest/dumptmp2 '
%
'%s -g --databases timedb1 -S 1625068810000000 -E 1625068860000000 -o ./taosdumptest/dumptmp2 '
%
binPath
)
binPath
)
os
.
system
(
os
.
system
(
'%s
-y
-g --databases timedb1 -S 1625068810000000 -o ./taosdumptest/dumptmp3 '
%
'%s -g --databases timedb1 -S 1625068810000000 -o ./taosdumptest/dumptmp3 '
%
binPath
)
binPath
)
os
.
system
(
"%s -i ./taosdumptest/dumptmp1"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/dumptmp1"
%
binPath
)
...
@@ -269,14 +269,14 @@ class TDTestCase:
...
@@ -269,14 +269,14 @@ class TDTestCase:
self
.
createdb
(
precision
=
"ms"
)
self
.
createdb
(
precision
=
"ms"
)
os
.
system
(
os
.
system
(
"%s
-y
-g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
"%s -g --databases timedb1 -o ./taosdumptest/dumptmp1"
%
binPath
)
binPath
)
os
.
system
(
os
.
system
(
'%s
-y
-g --databases timedb1 -S 1625068810000 -E 1625068860000 -o ./taosdumptest/dumptmp2 '
%
'%s -g --databases timedb1 -S 1625068810000 -E 1625068860000 -o ./taosdumptest/dumptmp2 '
%
binPath
)
binPath
)
os
.
system
(
os
.
system
(
'%s
-y
-g --databases timedb1 -S 1625068810000 -o ./taosdumptest/dumptmp3 '
%
'%s -g --databases timedb1 -S 1625068810000 -o ./taosdumptest/dumptmp3 '
%
binPath
)
binPath
)
os
.
system
(
"%s -i ./taosdumptest/dumptmp1"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/dumptmp1"
%
binPath
)
...
...
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestInsertWithJson-illegalData.py
浏览文件 @
027f8560
...
@@ -124,9 +124,9 @@ class TDTestCase:
...
@@ -124,9 +124,9 @@ class TDTestCase:
os
.
system
(
"%staosBenchmark -f 5-taos-tools/taosbenchmark/insertMaxNumPerReq.json -y "
%
binPath
)
os
.
system
(
"%staosBenchmark -f 5-taos-tools/taosbenchmark/insertMaxNumPerReq.json -y "
%
binPath
)
tdSql
.
execute
(
"use db"
)
tdSql
.
execute
(
"use db"
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
check
Rows
(
0
)
tdSql
.
check
Data
(
0
,
0
,
500000
0
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
check
Rows
(
0
)
tdSql
.
check
Data
(
0
,
0
,
500000
0
)
...
...
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestInsertWithJsonSml-illegalData.py
浏览文件 @
027f8560
...
@@ -94,7 +94,8 @@ class TDTestCase:
...
@@ -94,7 +94,8 @@ class TDTestCase:
tdSql
.
execute
(
"drop database if exists db1"
)
tdSql
.
execute
(
"drop database if exists db1"
)
tdSql
.
execute
(
"drop database if exists db"
)
tdSql
.
execute
(
"drop database if exists db"
)
os
.
system
(
"%staosBenchmark -f 5-taos-tools/taosbenchmark/sml/insertNumOfrecordPerReq0-sml.json -y "
%
binPath
)
os
.
system
(
"%staosBenchmark -f 5-taos-tools/taosbenchmark/sml/insertNumOfrecordPerReq0-sml.json -y "
%
binPath
)
tdSql
.
error
(
"select count(*) from db.stb0"
)
tdSql
.
query
(
"select count(*) from db.stb0"
)
tdSql
.
checkData
(
0
,
0
,
1
)
# # has a core dumped
# # has a core dumped
# tdSql.execute("drop database if exists db")
# tdSql.execute("drop database if exists db")
# os.system("%staosBenchmark -f 5-taos-tools/taosbenchmark/sml/insertNumOfrecordPerReqless0-sml.json -y " % binPath)
# os.system("%staosBenchmark -f 5-taos-tools/taosbenchmark/sml/insertNumOfrecordPerReqless0-sml.json -y " % binPath)
...
...
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestInsertWithJsonSml.py
浏览文件 @
027f8560
...
@@ -116,9 +116,9 @@ class TDTestCase:
...
@@ -116,9 +116,9 @@ class TDTestCase:
tdSql
.
query
(
"select count (tbname) from stb1"
)
tdSql
.
query
(
"select count (tbname) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
6
)
tdSql
.
checkData
(
0
,
0
,
6
)
tdSql
.
query
(
"select count (tbname) from stb2"
)
tdSql
.
query
(
"select count (tbname) from stb2"
)
tdSql
.
checkData
(
0
,
0
,
4
)
tdSql
.
checkData
(
0
,
0
,
7
)
tdSql
.
query
(
"select count (tbname) from stb3"
)
tdSql
.
query
(
"select count (tbname) from stb3"
)
tdSql
.
checkData
(
0
,
0
,
2
)
tdSql
.
checkData
(
0
,
0
,
8
)
os
.
system
(
os
.
system
(
"%staosBenchmark -f 5-taos-tools/taosbenchmark/sml/insert-renewdb-sml.json -y"
"%staosBenchmark -f 5-taos-tools/taosbenchmark/sml/insert-renewdb-sml.json -y"
%
binPath
%
binPath
...
@@ -129,9 +129,9 @@ class TDTestCase:
...
@@ -129,9 +129,9 @@ class TDTestCase:
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
120
)
tdSql
.
checkData
(
0
,
0
,
120
)
tdSql
.
query
(
"select count(*) from stb2"
)
tdSql
.
query
(
"select count(*) from stb2"
)
tdSql
.
checkData
(
0
,
0
,
8
0
)
tdSql
.
checkData
(
0
,
0
,
14
0
)
tdSql
.
query
(
"select count(*) from stb3"
)
tdSql
.
query
(
"select count(*) from stb3"
)
tdSql
.
checkData
(
0
,
0
,
4
0
)
tdSql
.
checkData
(
0
,
0
,
16
0
)
tdSql
.
query
(
"select count(*) from stb4"
)
tdSql
.
query
(
"select count(*) from stb4"
)
tdSql
.
checkData
(
0
,
0
,
160
)
tdSql
.
checkData
(
0
,
0
,
160
)
...
...
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestInsertWithJsonStmt-illegalData.py
浏览文件 @
027f8560
...
@@ -91,7 +91,8 @@ class TDTestCase:
...
@@ -91,7 +91,8 @@ class TDTestCase:
tdSql
.
error
(
"select * from db.stb2"
)
tdSql
.
error
(
"select * from db.stb2"
)
tdSql
.
execute
(
"drop database if exists db"
)
tdSql
.
execute
(
"drop database if exists db"
)
os
.
system
(
"%staosBenchmark -f 5-taos-tools/taosbenchmark/stmt/insertNumOfrecordPerReq0-stmt.json -y "
%
binPath
)
os
.
system
(
"%staosBenchmark -f 5-taos-tools/taosbenchmark/stmt/insertNumOfrecordPerReq0-stmt.json -y "
%
binPath
)
tdSql
.
error
(
"select count(*) from db.stb0"
)
tdSql
.
query
(
"select count(*) from db.stb0"
)
tdSql
.
checkData
(
0
,
0
,
1
)
# # it has a core dumped
# # it has a core dumped
# tdSql.execute("drop database if exists db")
# tdSql.execute("drop database if exists db")
# os.system("%staosBenchmark -f 5-taos-tools/taosbenchmark/stmt/insertNumOfrecordPerReqless0-stmt.json -y " % binPath)
# os.system("%staosBenchmark -f 5-taos-tools/taosbenchmark/stmt/insertNumOfrecordPerReqless0-stmt.json -y " % binPath)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录