Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
3b0702bc
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
3b0702bc
编写于
11月 04, 2021
作者:
haoranc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-10465]<test>:modify sml testcase of taosdemo
上级
9c383502
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
30 addition
and
30 deletion
+30
-30
tests/pytest/tools/taosdemoAllTest/sml/insert-1s1tnt1r-sml.json
...pytest/tools/taosdemoAllTest/sml/insert-1s1tnt1r-sml.json
+2
-2
tests/pytest/tools/taosdemoAllTest/sml/insert-1s1tntmr-sml.json
...pytest/tools/taosdemoAllTest/sml/insert-1s1tntmr-sml.json
+3
-3
tests/pytest/tools/taosdemoAllTest/sml/insert-interval-speed-sml.json
.../tools/taosdemoAllTest/sml/insert-interval-speed-sml.json
+3
-3
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertWithJsonSml.py
...st/tools/taosdemoAllTest/taosdemoTestInsertWithJsonSml.py
+22
-22
未找到文件。
tests/pytest/tools/taosdemoAllTest/sml/insert-1s1tnt1r-sml.json
浏览文件 @
3b0702bc
...
...
@@ -35,7 +35,7 @@
"super_tables"
:
[{
"name"
:
"stb0"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
10
00
,
"childtable_count"
:
10
,
"childtable_prefix"
:
"stb00_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
1
,
...
...
@@ -61,7 +61,7 @@
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
100
0
,
"childtable_count"
:
2
0
,
"childtable_prefix"
:
"stb01_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
...
...
tests/pytest/tools/taosdemoAllTest/sml/insert-1s1tntmr-sml.json
浏览文件 @
3b0702bc
...
...
@@ -41,7 +41,7 @@
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_rows"
:
1
000
0
,
"insert_rows"
:
1
5
0
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
...
...
@@ -61,13 +61,13 @@
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
20
,
"childtable_count"
:
15
,
"childtable_prefix"
:
"stb01_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_rows"
:
200
00
,
"insert_rows"
:
200
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
...
...
tests/pytest/tools/taosdemoAllTest/sml/insert-interval-speed-sml.json
浏览文件 @
3b0702bc
...
...
@@ -41,7 +41,7 @@
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_rows"
:
20
000
,
"insert_rows"
:
20
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
...
...
@@ -61,13 +61,13 @@
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
10
0
,
"childtable_count"
:
2
0
,
"childtable_prefix"
:
"stb01_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_rows"
:
20000
,
"insert_rows"
:
35
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
...
...
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertWithJsonSml.py
浏览文件 @
3b0702bc
...
...
@@ -52,17 +52,17 @@ class TDTestCase:
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/sml/insert-1s1tnt1r-sml.json -y "
%
binPath
)
tdSql
.
execute
(
"use db"
)
tdSql
.
query
(
"select count (tbname) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
10
00
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count (tbname) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
100
0
)
tdSql
.
checkData
(
0
,
0
,
2
0
)
tdSql
.
query
(
"select count(*) from stb00_0"
)
tdSql
.
checkData
(
0
,
0
,
100
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
1000
00
)
tdSql
.
checkData
(
0
,
0
,
1000
)
tdSql
.
query
(
"select count(*) from stb01_1"
)
tdSql
.
checkData
(
0
,
0
,
200
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
200
000
)
tdSql
.
checkData
(
0
,
0
,
4
000
)
# insert: create mutiple tables per sql and insert one rows per sql .
...
...
@@ -71,32 +71,32 @@ class TDTestCase:
tdSql
.
query
(
"select count (tbname) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count (tbname) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
20
)
tdSql
.
checkData
(
0
,
0
,
15
)
tdSql
.
query
(
"select count(*) from stb00_0"
)
tdSql
.
checkData
(
0
,
0
,
1
000
0
)
tdSql
.
checkData
(
0
,
0
,
1
5
0
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
1
000
00
)
tdSql
.
checkData
(
0
,
0
,
1
5
00
)
tdSql
.
query
(
"select count(*) from stb01_0"
)
tdSql
.
checkData
(
0
,
0
,
200
00
)
tdSql
.
checkData
(
0
,
0
,
200
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
400
000
)
tdSql
.
checkData
(
0
,
0
,
3
000
)
# insert: using parament "insert_interval to controls spped of insert.
# but We need to have accurate methods to control the speed, such as getting the speed value, checking the count and so on。
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/sml/insert-interval-speed-sml.json -y"
%
binPath
)
tdSql
.
execute
(
"use db"
)
tdSql
.
query
(
"s
how stables
"
)
tdSql
.
check
Data
(
0
,
4
,
100
)
tdSql
.
query
(
"s
elect tbname from stb0
"
)
tdSql
.
check
Rows
(
100
)
tdSql
.
query
(
"select count(*) from stb00_0"
)
tdSql
.
checkData
(
0
,
0
,
20
000
)
tdSql
.
checkData
(
0
,
0
,
20
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
2000
000
)
tdSql
.
checkData
(
0
,
0
,
2000
)
tdSql
.
query
(
"show stables"
)
tdSql
.
checkData
(
1
,
4
,
10
0
)
tdSql
.
checkData
(
1
,
4
,
2
0
)
tdSql
.
query
(
"select count(*) from stb01_0"
)
tdSql
.
checkData
(
0
,
0
,
20000
)
tdSql
.
checkData
(
0
,
0
,
35
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
20000
00
)
tdSql
.
checkData
(
0
,
0
,
7
00
)
# spend 2min30s for 3 testcases.
# insert: drop and child_table_exists combination test
...
...
@@ -208,12 +208,12 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
"2019-10-01 00:00:00"
)
tdSql
.
query
(
"select last(ts) from blf.p_0_topics_6 "
)
tdSql
.
checkData
(
0
,
0
,
"2020-09-29 23:59:00"
)
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/sml/insertMaxNumPerReq-sml.json -y "
%
binPath
)
tdSql
.
execute
(
"use db"
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
5000000
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
5000000
)
#
os.system("%staosdemo -f tools/taosdemoAllTest/sml/insertMaxNumPerReq-sml.json -y " % binPath)
#
tdSql.execute("use db")
#
tdSql.query("select count(*) from stb0")
#
tdSql.checkData(0, 0, 5000000)
#
tdSql.query("select count(*) from stb1")
#
tdSql.checkData(0, 0, 5000000)
# insert: timestamp and step
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录