Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
de034815
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1193
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
de034815
编写于
1月 20, 2022
作者:
Y
Yang Zhao
提交者:
GitHub
1月 20, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-13081]<feature>taosBenchmark support specified col write (#9934)
上级
c0cd9e5c
变更
24
隐藏空白更改
内联
并排
Showing
24 changed file
with
1389 addition
and
24 deletion
+1389
-24
src/kit/taos-tools
src/kit/taos-tools
+1
-1
tests/develop-test/5-taos-tools/taosbenchmark/auto_create_table_json.py
...test/5-taos-tools/taosbenchmark/auto_create_table_json.py
+32
-0
tests/develop-test/5-taos-tools/taosbenchmark/commandline.py
tests/develop-test/5-taos-tools/taosbenchmark/commandline.py
+0
-4
tests/develop-test/5-taos-tools/taosbenchmark/json/rest_auto_create_table.json
...taos-tools/taosbenchmark/json/rest_auto_create_table.json
+1
-1
tests/develop-test/5-taos-tools/taosbenchmark/json/rest_query.json
...elop-test/5-taos-tools/taosbenchmark/json/rest_query.json
+1
-1
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_auto_create_table.json
...-taos-tools/taosbenchmark/json/sml_auto_create_table.json
+1
-1
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_insert_alltypes.json
.../5-taos-tools/taosbenchmark/json/sml_insert_alltypes.json
+1
-1
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_json_alltypes.json
...st/5-taos-tools/taosbenchmark/json/sml_json_alltypes.json
+262
-0
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_rest_json.json
...p-test/5-taos-tools/taosbenchmark/json/sml_rest_json.json
+107
-0
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_rest_line.json
...p-test/5-taos-tools/taosbenchmark/json/sml_rest_line.json
+267
-0
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_rest_telnet.json
...test/5-taos-tools/taosbenchmark/json/sml_rest_telnet.json
+187
-0
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_telnet_alltypes.json
.../5-taos-tools/taosbenchmark/json/sml_telnet_alltypes.json
+362
-0
tests/develop-test/5-taos-tools/taosbenchmark/json/stmt_auto_create_table.json
...taos-tools/taosbenchmark/json/stmt_auto_create_table.json
+1
-1
tests/develop-test/5-taos-tools/taosbenchmark/json/super_subscribe.json
...test/5-taos-tools/taosbenchmark/json/super_subscribe.json
+24
-0
tests/develop-test/5-taos-tools/taosbenchmark/json/taosc_auto_create_table.json
...aos-tools/taosbenchmark/json/taosc_auto_create_table.json
+3
-1
tests/develop-test/5-taos-tools/taosbenchmark/json/taosc_insert_alltypes.json
...-taos-tools/taosbenchmark/json/taosc_insert_alltypes.json
+1
-0
tests/develop-test/5-taos-tools/taosbenchmark/json/taosc_limit_offset.json
...t/5-taos-tools/taosbenchmark/json/taosc_limit_offset.json
+2
-1
tests/develop-test/5-taos-tools/taosbenchmark/limit_offset_json.py
...elop-test/5-taos-tools/taosbenchmark/limit_offset_json.py
+24
-0
tests/develop-test/5-taos-tools/taosbenchmark/sml_interlace.py
.../develop-test/5-taos-tools/taosbenchmark/sml_interlace.py
+4
-2
tests/develop-test/5-taos-tools/taosbenchmark/sml_json_alltypes.py
...elop-test/5-taos-tools/taosbenchmark/sml_json_alltypes.py
+1
-1
tests/develop-test/5-taos-tools/taosbenchmark/sml_telnet_alltypes.py
...op-test/5-taos-tools/taosbenchmark/sml_telnet_alltypes.py
+1
-1
tests/develop-test/5-taos-tools/taosbenchmark/subscripe_json.py
...develop-test/5-taos-tools/taosbenchmark/subscripe_json.py
+6
-2
tests/develop-test/5-taos-tools/taosbenchmark/taosadapter_json.py
...velop-test/5-taos-tools/taosbenchmark/taosadapter_json.py
+77
-0
tests/develop-test/5-taos-tools/taosdump/taosdumpTestTypeJson.py
...evelop-test/5-taos-tools/taosdump/taosdumpTestTypeJson.py
+23
-6
未找到文件。
taos-tools
@
a6531c15
比较
22bcc74d
...
a6531c15
Subproject commit
22bcc74d9177b7979569c0c3a314375ba513d7a0
Subproject commit
a6531c1528b5b50fb234e2519106feae91cc8d38
tests/develop-test/5-taos-tools/taosbenchmark/auto_create_table_json.py
浏览文件 @
de034815
...
@@ -37,12 +37,44 @@ class TDTestCase:
...
@@ -37,12 +37,44 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
query
(
"select count(*) from db.stb1"
)
tdSql
.
query
(
"select count(*) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
160
)
tdSql
.
checkData
(
0
,
0
,
160
)
tdSql
.
query
(
"select distinct(c5) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c6) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c7) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c8) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c9) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c10) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c11) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c12) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
execute
(
"reset query cache"
)
tdSql
.
execute
(
"reset query cache"
)
tdSql
.
query
(
"select count(tbname) from db.`stb1-2`"
)
tdSql
.
query
(
"select count(tbname) from db.`stb1-2`"
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
query
(
"select count(*) from db.`stb1-2`"
)
tdSql
.
query
(
"select count(*) from db.`stb1-2`"
)
tdSql
.
checkData
(
0
,
0
,
160
)
tdSql
.
checkData
(
0
,
0
,
160
)
tdSql
.
query
(
"select distinct(c5) from db.`stb1-2`"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c6) from db.`stb1-2`"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c7) from db.`stb1-2`"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c8) from db.`stb1-2`"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c9) from db.`stb1-2`"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c10) from db.`stb1-2`"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c11) from db.`stb1-2`"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c12) from db.`stb1-2`"
)
tdSql
.
checkData
(
0
,
0
,
None
)
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/stmt_auto_create_table.json"
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/stmt_auto_create_table.json"
tdLog
.
info
(
"%s"
%
cmd
)
tdLog
.
info
(
"%s"
%
cmd
)
...
...
tests/develop-test/5-taos-tools/taosbenchmark/commandline.py
浏览文件 @
de034815
...
@@ -38,8 +38,6 @@ class TDTestCase:
...
@@ -38,8 +38,6 @@ class TDTestCase:
tdSql
.
execute
(
"use newtest"
)
tdSql
.
execute
(
"use newtest"
)
tdSql
.
query
(
"select count(*) from newtest.meters"
)
tdSql
.
query
(
"select count(*) from newtest.meters"
)
tdSql
.
checkData
(
0
,
0
,
20
)
tdSql
.
checkData
(
0
,
0
,
20
)
tdSql
.
query
(
"select distinct(c0) from newtest.meters"
)
tdSql
.
checkRows
(
7
)
tdSql
.
query
(
"describe meters"
)
tdSql
.
query
(
"describe meters"
)
tdSql
.
checkRows
(
8
)
tdSql
.
checkRows
(
8
)
tdSql
.
checkData
(
0
,
1
,
"TIMESTAMP"
)
tdSql
.
checkData
(
0
,
1
,
"TIMESTAMP"
)
...
@@ -67,8 +65,6 @@ class TDTestCase:
...
@@ -67,8 +65,6 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
2
)
tdSql
.
checkData
(
0
,
0
,
2
)
tdSql
.
query
(
"select count(*) from test.meters"
)
tdSql
.
query
(
"select count(*) from test.meters"
)
tdSql
.
checkData
(
0
,
0
,
20
)
tdSql
.
checkData
(
0
,
0
,
20
)
tdSql
.
query
(
"select distinct(c0) from test.meters"
)
tdSql
.
checkRows
(
7
)
cmd
=
"taosBenchmark -n 3 -t 3 -B 2 -i 1 -G -y -T 1 2>&1 | grep sleep | wc -l"
cmd
=
"taosBenchmark -n 3 -t 3 -B 2 -i 1 -G -y -T 1 2>&1 | grep sleep | wc -l"
sleepTimes
=
subprocess
.
check_output
(
cmd
,
shell
=
True
).
decode
(
"utf-8"
)
sleepTimes
=
subprocess
.
check_output
(
cmd
,
shell
=
True
).
decode
(
"utf-8"
)
...
...
tests/develop-test/5-taos-tools/taosbenchmark/json/rest_auto_create_table.json
浏览文件 @
de034815
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"user"
:
"root"
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count"
:
4
,
"thread_pool_size"
:
2
0
,
"thread_pool_size"
:
1
0
,
"result_file"
:
"./insert_res.txt"
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"confirm_parameter_prompt"
:
"no"
,
"prepared_rand"
:
100
,
"prepared_rand"
:
100
,
...
...
tests/develop-test/5-taos-tools/taosbenchmark/json/rest_query.json
浏览文件 @
de034815
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"confirm_parameter_prompt"
:
"no"
,
"confirm_parameter_prompt"
:
"no"
,
"databases"
:
"db"
,
"databases"
:
"db"
,
"query_mode"
:
"rest"
,
"query_mode"
:
"rest"
,
"thread_pool_size"
:
2
0
,
"thread_pool_size"
:
1
0
,
"response_buffer"
:
10000
,
"response_buffer"
:
10000
,
"specified_table_query"
:
"specified_table_query"
:
{
{
...
...
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_auto_create_table.json
浏览文件 @
de034815
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"user"
:
"root"
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count"
:
4
,
"thread_pool_size"
:
2
0
,
"thread_pool_size"
:
1
0
,
"result_file"
:
"./insert_res.txt"
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"confirm_parameter_prompt"
:
"no"
,
"prepared_rand"
:
100
,
"prepared_rand"
:
100
,
...
...
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_insert_alltypes.json
浏览文件 @
de034815
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"user"
:
"root"
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count"
:
4
,
"thread_pool_size"
:
2
0
,
"thread_pool_size"
:
1
0
,
"result_file"
:
"./insert_res.txt"
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"confirm_parameter_prompt"
:
"no"
,
"prepared_rand"
:
10
,
"prepared_rand"
:
10
,
...
...
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_json_alltypes.json
0 → 100644
浏览文件 @
de034815
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_pool_size"
:
10
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"prepared_rand"
:
10
,
"chinese"
:
"no"
,
"insert_interval"
:
0
,
"num_of_records_per_req"
:
10
,
"databases"
:
[{
"dbinfo"
:
{
"name"
:
"db"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
16
,
"blocks"
:
8
,
"precision"
:
"ms"
,
"keep"
:
36500
,
"minRows"
:
100
,
"maxRows"
:
4096
,
"comp"
:
2
,
"walLevel"
:
1
,
"cachelast"
:
0
,
"quorum"
:
1
,
"fsync"
:
3000
,
"update"
:
0
},
"super_tables"
:
[{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb1_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BOOL"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb2_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"TINYINT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb3"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb3_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"SMALLINT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb4"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb4_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb5"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb5_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BIGINT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb6"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb6_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"FLOAT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb7"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb7_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"DOUBLE"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb8"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb8_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
8
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb9"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb9_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"NCHAR"
,
"len"
:
8
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
}]
}]
}
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_rest_json.json
0 → 100644
浏览文件 @
de034815
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_pool_size"
:
20
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"prepared_rand"
:
10
,
"chinese"
:
"no"
,
"insert_interval"
:
0
,
"num_of_records_per_req"
:
10
,
"databases"
:
[
{
"dbinfo"
:
{
"name"
:
"db3"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
16
,
"blocks"
:
8
,
"precision"
:
"ms"
,
"keep"
:
36500
,
"minRows"
:
100
,
"maxRows"
:
4096
,
"comp"
:
2
,
"walLevel"
:
1
,
"cachelast"
:
0
,
"quorum"
:
1
,
"fsync"
:
3000
,
"update"
:
0
},
"super_tables"
:
[
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb1_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml-rest"
,
"line_protocol"
:
"json"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[
{
"type"
:
"INT"
}
],
"tags"
:
[
{
"type"
:
"INT"
}
]
},{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb2_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml-rest"
,
"line_protocol"
:
"json"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
3
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[
{
"type"
:
"INT"
}
],
"tags"
:
[
{
"type"
:
"INT"
}
]
}
]
}
]
}
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_rest_line.json
0 → 100644
浏览文件 @
de034815
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_pool_size"
:
20
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"prepared_rand"
:
10
,
"chinese"
:
"no"
,
"insert_interval"
:
0
,
"num_of_records_per_req"
:
10
,
"databases"
:
[
{
"dbinfo"
:
{
"name"
:
"db2"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
16
,
"blocks"
:
8
,
"precision"
:
"ms"
,
"keep"
:
36500
,
"minRows"
:
100
,
"maxRows"
:
4096
,
"comp"
:
2
,
"walLevel"
:
1
,
"cachelast"
:
0
,
"quorum"
:
1
,
"fsync"
:
3000
,
"update"
:
0
},
"super_tables"
:
[
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb1_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml-rest"
,
"line_protocol"
:
"line"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[
{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}
],
"tags"
:
[
{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}
]
},{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb2_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml-rest"
,
"line_protocol"
:
"line"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
6
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[
{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}
],
"tags"
:
[
{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}
]
}
]
}
]
}
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_rest_telnet.json
0 → 100644
浏览文件 @
de034815
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_pool_size"
:
20
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"prepared_rand"
:
10
,
"chinese"
:
"no"
,
"insert_interval"
:
0
,
"num_of_records_per_req"
:
10
,
"databases"
:
[
{
"dbinfo"
:
{
"name"
:
"db"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
16
,
"blocks"
:
8
,
"precision"
:
"ms"
,
"keep"
:
36500
,
"minRows"
:
100
,
"maxRows"
:
4096
,
"comp"
:
2
,
"walLevel"
:
1
,
"cachelast"
:
0
,
"quorum"
:
1
,
"fsync"
:
3000
,
"update"
:
0
},
"super_tables"
:
[
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb1_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml-rest"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[
{
"type"
:
"INT"
}
],
"tags"
:
[
{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}
]
},{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb2_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml-rest"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
5
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[
{
"type"
:
"INT"
}
],
"tags"
:
[
{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}
]
}
]
}
]
}
tests/develop-test/5-taos-tools/taosbenchmark/json/sml_telnet_alltypes.json
0 → 100644
浏览文件 @
de034815
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_pool_size"
:
10
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"prepared_rand"
:
10
,
"chinese"
:
"no"
,
"insert_interval"
:
0
,
"num_of_records_per_req"
:
10
,
"databases"
:
[{
"dbinfo"
:
{
"name"
:
"db"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
16
,
"blocks"
:
8
,
"precision"
:
"ms"
,
"keep"
:
36500
,
"minRows"
:
100
,
"maxRows"
:
4096
,
"comp"
:
2
,
"walLevel"
:
1
,
"cachelast"
:
0
,
"quorum"
:
1
,
"fsync"
:
3000
,
"update"
:
0
},
"super_tables"
:
[{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb1_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BOOL"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb2_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"TINYINT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb3"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb3_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"UTINYINT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb4"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb4_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"SMALLINT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb5"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb5_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"USMALLINT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb6"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb6_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb7"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb7_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"UINT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb8"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb8_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BIGINT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb9"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb9_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"UBIGINT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb10"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb10_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"FLOAT"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb11"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb11_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"DOUBLE"
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb12"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb12_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
8
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
"name"
:
"stb13"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb13_"
,
"escape_character"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"insert_rows"
:
20
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_file"
:
""
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"NCHAR"
,
"len"
:
8
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
}]
}]
}
tests/develop-test/5-taos-tools/taosbenchmark/json/stmt_auto_create_table.json
浏览文件 @
de034815
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"user"
:
"root"
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count"
:
4
,
"thread_pool_size"
:
2
0
,
"thread_pool_size"
:
1
0
,
"result_file"
:
"./insert_res.txt"
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"confirm_parameter_prompt"
:
"no"
,
"prepared_rand"
:
100
,
"prepared_rand"
:
100
,
...
...
tests/develop-test/5-taos-tools/taosbenchmark/json/super_subscribe.json
0 → 100644
浏览文件 @
de034815
{
"filetype"
:
"subscribe"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"databases"
:
"db"
,
"confirm_parameter_prompt"
:
"no"
,
"super_table_query"
:
{
"stblname"
:
"stb"
,
"threads"
:
1
,
"mode"
:
"sync"
,
"interval"
:
1000
,
"restart"
:
"yes"
,
"keepProgress"
:
"yes"
,
"endAfterConsume"
:
1
,
"sqls"
:
[
{
"sql"
:
"select * from xxxx;"
}
]
}
}
\ No newline at end of file
tests/develop-test/5-taos-tools/taosbenchmark/json/taosc_auto_create_table.json
浏览文件 @
de034815
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"user"
:
"root"
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count"
:
4
,
"thread_pool_size"
:
2
0
,
"thread_pool_size"
:
1
0
,
"result_file"
:
"./insert_res.txt"
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"confirm_parameter_prompt"
:
"no"
,
"prepared_rand"
:
100
,
"prepared_rand"
:
100
,
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
"sample_file"
:
"./sample.csv"
,
"sample_file"
:
"./sample.csv"
,
"use_sample_ts"
:
"no"
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"tags_file"
:
""
,
"partial_col_num"
:
5
,
"columns"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
29
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
23
,
"count"
:
1
}],
"columns"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
29
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
23
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
"tags"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
},{
},{
...
@@ -80,6 +81,7 @@
...
@@ -80,6 +81,7 @@
"sample_file"
:
"./sample.csv"
,
"sample_file"
:
"./sample.csv"
,
"use_sample_ts"
:
"no"
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"tags_file"
:
""
,
"partial_col_num"
:
5
,
"columns"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
29
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
23
,
"count"
:
1
}],
"columns"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
29
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
23
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
"tags"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
}]
}]
...
...
tests/develop-test/5-taos-tools/taosbenchmark/json/taosc_insert_alltypes.json
浏览文件 @
de034815
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
"sample_file"
:
"./sample.csv"
,
"sample_file"
:
"./sample.csv"
,
"use_sample_ts"
:
"no"
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"tags_file"
:
""
,
"partial_col_num"
:
999
,
"columns"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
29
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
23
,
"count"
:
1
}],
"columns"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
29
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
23
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
"tags"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
}]
}]
...
...
tests/develop-test/5-taos-tools/taosbenchmark/json/taosc_limit_offset.json
浏览文件 @
de034815
...
@@ -55,7 +55,8 @@
...
@@ -55,7 +55,8 @@
"sample_file"
:
"./sample.csv"
,
"sample_file"
:
"./sample.csv"
,
"use_sample_ts"
:
"no"
,
"use_sample_ts"
:
"no"
,
"tags_file"
:
""
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
29
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
23
,
"count"
:
1
}],
"partial_col_num"
:
3
,
"columns"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
,
"len"
:
0
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
29
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
23
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
"tags"
:
[{
"type"
:
"TIMESTAMP"
},{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
17
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
19
,
"count"
:
1
}]
}]
}]
}]
}]
...
...
tests/develop-test/5-taos-tools/taosbenchmark/limit_offset_json.py
浏览文件 @
de034815
...
@@ -56,6 +56,30 @@ class TDTestCase:
...
@@ -56,6 +56,30 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
query
(
"select count(*) from db.stb"
)
tdSql
.
query
(
"select count(*) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
40
)
tdSql
.
checkData
(
0
,
0
,
40
)
tdSql
.
query
(
"select distinct(c1) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c3) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c4) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c5) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c6) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c7) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c8) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c9) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c10) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c11) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c12) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
query
(
"select distinct(c13) from db.stb"
)
tdSql
.
checkData
(
0
,
0
,
None
)
def
stop
(
self
):
def
stop
(
self
):
tdSql
.
close
()
tdSql
.
close
()
...
...
tests/develop-test/5-taos-tools/taosbenchmark/sml_interlace.py
浏览文件 @
de034815
...
@@ -38,9 +38,11 @@ class TDTestCase:
...
@@ -38,9 +38,11 @@ class TDTestCase:
tdSql
.
query
(
"select count(tbname) from db.stb2"
)
tdSql
.
query
(
"select count(tbname) from db.stb2"
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
query
(
"select count(*) from db.stb1"
)
tdSql
.
query
(
"select count(*) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
160
)
result
=
tdSql
.
getData
(
0
,
0
)
assert
result
<=
160
,
"result is %s > expect: 160"
%
result
tdSql
.
query
(
"select count(*) from db.stb2"
)
tdSql
.
query
(
"select count(*) from db.stb2"
)
tdSql
.
checkData
(
0
,
0
,
160
)
result
=
tdSql
.
getData
(
0
,
0
)
assert
result
<=
160
,
"result is %s > expect: 160"
%
result
def
stop
(
self
):
def
stop
(
self
):
tdSql
.
close
()
tdSql
.
close
()
...
...
tests/develop-test/5-taos-tools/taosbenchmark/sml_json_alltypes.py
浏览文件 @
de034815
...
@@ -29,7 +29,7 @@ class TDTestCase:
...
@@ -29,7 +29,7 @@ class TDTestCase:
tdSql
.
init
(
conn
.
cursor
(),
logSql
)
tdSql
.
init
(
conn
.
cursor
(),
logSql
)
def
run
(
self
):
def
run
(
self
):
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/json_alltypes.json"
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/
sml_
json_alltypes.json"
tdLog
.
info
(
"%s"
%
cmd
)
tdLog
.
info
(
"%s"
%
cmd
)
os
.
system
(
"%s"
%
cmd
)
os
.
system
(
"%s"
%
cmd
)
tdSql
.
execute
(
"reset query cache"
)
tdSql
.
execute
(
"reset query cache"
)
...
...
tests/develop-test/5-taos-tools/taosbenchmark/sml_telnet_alltypes.py
浏览文件 @
de034815
...
@@ -29,7 +29,7 @@ class TDTestCase:
...
@@ -29,7 +29,7 @@ class TDTestCase:
tdSql
.
init
(
conn
.
cursor
(),
logSql
)
tdSql
.
init
(
conn
.
cursor
(),
logSql
)
def
run
(
self
):
def
run
(
self
):
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/telnet_alltypes.json"
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/
sml_
telnet_alltypes.json"
tdLog
.
info
(
"%s"
%
cmd
)
tdLog
.
info
(
"%s"
%
cmd
)
os
.
system
(
"%s"
%
cmd
)
os
.
system
(
"%s"
%
cmd
)
tdSql
.
execute
(
"reset query cache"
)
tdSql
.
execute
(
"reset query cache"
)
...
...
tests/develop-test/5-taos-tools/taosbenchmark/subscripe_json.py
浏览文件 @
de034815
...
@@ -38,8 +38,12 @@ class TDTestCase:
...
@@ -38,8 +38,12 @@ class TDTestCase:
tdSql
.
execute
(
"insert into stb_2 using stb tags (2) values (now, 2)"
)
tdSql
.
execute
(
"insert into stb_2 using stb tags (2) values (now, 2)"
)
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/specified_subscribe.json -g"
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/specified_subscribe.json -g"
tdLog
.
info
(
"%s"
%
cmd
)
tdLog
.
info
(
"%s"
%
cmd
)
os
.
system
(
"%s"
%
cmd
)
assert
os
.
system
(
"%s"
%
cmd
)
==
0
tdSql
.
execute
(
"reset query cache"
)
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/super_subscribe.json -g"
tdLog
.
info
(
"%s"
%
cmd
)
assert
os
.
system
(
"%s"
%
cmd
)
==
0
def
stop
(
self
):
def
stop
(
self
):
tdSql
.
close
()
tdSql
.
close
()
...
...
tests/develop-test/5-taos-tools/taosbenchmark/taosadapter_json.py
0 → 100644
浏览文件 @
de034815
###################################################################
# Copyright (c) 2016 by TAOS Technologies, Inc.
# All rights reserved.
#
# This file is proprietary and confidential to TAOS Technologies.
# No part of this file may be reproduced, stored, transmitted,
# disclosed or used in any form or by any means other than as
# expressly provided by the written permission from Jianhui Tao
#
###################################################################
# -*- coding: utf-8 -*-
import
os
from
util.log
import
*
from
util.cases
import
*
from
util.sql
import
*
from
util.dnodes
import
*
class
TDTestCase
:
def
caseDescription
(
self
):
'''
[TD-11510] taosBenchmark test cases
'''
return
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
(),
logSql
)
def
run
(
self
):
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/sml_rest_telnet.json"
tdLog
.
info
(
"%s"
%
cmd
)
os
.
system
(
"%s"
%
cmd
)
tdSql
.
execute
(
"reset query cache"
)
tdSql
.
query
(
"select count(tbname) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
query
(
"select count(*) from db.stb1"
)
tdSql
.
checkData
(
0
,
0
,
160
)
tdSql
.
query
(
"select count(tbname) from db.stb2"
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
query
(
"select count(*) from db.stb2"
)
tdSql
.
checkData
(
0
,
0
,
160
)
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/sml_rest_line.json"
tdLog
.
info
(
"%s"
%
cmd
)
os
.
system
(
"%s"
%
cmd
)
tdSql
.
execute
(
"reset query cache"
)
tdSql
.
query
(
"select count(tbname) from db2.stb1"
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
query
(
"select count(*) from db2.stb1"
)
tdSql
.
checkData
(
0
,
0
,
160
)
tdSql
.
query
(
"select count(tbname) from db2.stb2"
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
query
(
"select count(*) from db2.stb2"
)
tdSql
.
checkData
(
0
,
0
,
160
)
cmd
=
"taosBenchmark -f ./5-taos-tools/taosbenchmark/json/sml_rest_json.json"
tdLog
.
info
(
"%s"
%
cmd
)
os
.
system
(
"%s"
%
cmd
)
tdSql
.
execute
(
"reset query cache"
)
tdSql
.
query
(
"select count(tbname) from db3.stb1"
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
query
(
"select count(*) from db3.stb1"
)
tdSql
.
checkData
(
0
,
0
,
160
)
tdSql
.
query
(
"select count(tbname) from db3.stb2"
)
tdSql
.
checkData
(
0
,
0
,
8
)
tdSql
.
query
(
"select count(*) from db3.stb2"
)
tdSql
.
checkData
(
0
,
0
,
160
)
def
stop
(
self
):
tdSql
.
close
()
tdLog
.
success
(
"%s successfully executed"
%
__file__
)
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
\ No newline at end of file
tests/develop-test/5-taos-tools/taosdump/taosdumpTestTypeJson.py
浏览文件 @
de034815
...
@@ -40,6 +40,7 @@ class TDTestCase:
...
@@ -40,6 +40,7 @@ class TDTestCase:
else
:
else
:
projPath
=
selfPath
[:
selfPath
.
find
(
"tests"
)]
projPath
=
selfPath
[:
selfPath
.
find
(
"tests"
)]
buildPath
=
""
for
root
,
dirs
,
files
in
os
.
walk
(
projPath
):
for
root
,
dirs
,
files
in
os
.
walk
(
projPath
):
if
(
"taosdump"
in
files
):
if
(
"taosdump"
in
files
):
rootRealPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
root
))
rootRealPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
root
))
...
@@ -57,9 +58,20 @@ class TDTestCase:
...
@@ -57,9 +58,20 @@ class TDTestCase:
tdSql
.
execute
(
"use db"
)
tdSql
.
execute
(
"use db"
)
tdSql
.
execute
(
tdSql
.
execute
(
"create table st(ts timestamp, c1 int) tags(jtag JSON)"
)
"create table st(ts timestamp, c1 int) tags(jtag JSON)"
)
tdSql
.
execute
(
"create table t1 using st tags('{
\"
location
\"
:
\"
beijing
\"
}')"
)
tdSql
.
execute
(
"create table t1 using st tags('{
\"
location
\"
:
\"
beijing
\"
}')"
)
tdSql
.
execute
(
"insert into t1 values(1500000000000, 1)"
)
tdSql
.
execute
(
"insert into t1 values(1500000000000, 1)"
)
tdSql
.
execute
(
"create table t2 using st tags(NULL)"
)
tdSql
.
execute
(
"insert into t2 values(1500000000000, NULL)"
)
tdSql
.
execute
(
"create table t3 using st tags('')"
)
tdSql
.
execute
(
"insert into t3 values(1500000000000, 0)"
)
# sys.exit(1)
buildPath
=
self
.
getBuildPath
()
buildPath
=
self
.
getBuildPath
()
if
(
buildPath
==
""
):
if
(
buildPath
==
""
):
tdLog
.
exit
(
"taosdump not found!"
)
tdLog
.
exit
(
"taosdump not found!"
)
...
@@ -74,11 +86,11 @@ class TDTestCase:
...
@@ -74,11 +86,11 @@ class TDTestCase:
os
.
system
(
"rm -rf %s"
%
self
.
tmpdir
)
os
.
system
(
"rm -rf %s"
%
self
.
tmpdir
)
os
.
makedirs
(
self
.
tmpdir
)
os
.
makedirs
(
self
.
tmpdir
)
os
.
system
(
"%staosdump --databases db -o %s"
%
(
binPath
,
self
.
tmpdir
))
os
.
system
(
"%staosdump --databases db -o %s
-g
"
%
(
binPath
,
self
.
tmpdir
))
tdSql
.
execute
(
"drop database db"
)
tdSql
.
execute
(
"drop database db"
)
os
.
system
(
"%staosdump -i %s"
%
(
binPath
,
self
.
tmpdir
))
os
.
system
(
"%staosdump -i %s
-g
"
%
(
binPath
,
self
.
tmpdir
))
tdSql
.
query
(
"show databases"
)
tdSql
.
query
(
"show databases"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkRows
(
1
)
...
@@ -89,11 +101,11 @@ class TDTestCase:
...
@@ -89,11 +101,11 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
'st'
)
tdSql
.
checkData
(
0
,
0
,
'st'
)
tdSql
.
query
(
"show tables"
)
tdSql
.
query
(
"show tables"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
't
1
'
)
tdSql
.
checkData
(
0
,
0
,
't
3
'
)
tdSql
.
query
(
"select jtag->'location' from st"
)
tdSql
.
query
(
"select jtag->'location' from st"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
"
\"
beijing
\"
"
)
tdSql
.
checkData
(
0
,
0
,
"
\"
beijing
\"
"
)
tdSql
.
query
(
"select * from st where jtag contains 'location'"
)
tdSql
.
query
(
"select * from st where jtag contains 'location'"
)
...
@@ -101,6 +113,11 @@ class TDTestCase:
...
@@ -101,6 +113,11 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
1
,
1
)
tdSql
.
checkData
(
0
,
1
,
1
)
tdSql
.
checkData
(
0
,
2
,
'{
\"
location
\"
:
\"
beijing
\"
}'
)
tdSql
.
checkData
(
0
,
2
,
'{
\"
location
\"
:
\"
beijing
\"
}'
)
tdSql
.
query
(
"select jtag from st"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
"{
\"
location
\"
:
\"
beijing
\"
}"
)
tdSql
.
checkData
(
1
,
0
,
None
)
tdSql
.
checkData
(
2
,
0
,
None
)
def
stop
(
self
):
def
stop
(
self
):
tdSql
.
close
()
tdSql
.
close
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录