Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
e7173a67
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看板
提交
e7173a67
编写于
11月 05, 2021
作者:
haoranc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-10789]<test>: add line_protocol into testcase of taosdemoSml
上级
2182f43b
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
745 addition
and
6 deletion
+745
-6
tests/pytest/tools/taosdemoAllTest/sml/insert-sml-json-alltype.json
...st/tools/taosdemoAllTest/sml/insert-sml-json-alltype.json
+270
-0
tests/pytest/tools/taosdemoAllTest/sml/insert-sml-telnet-alltype.json
.../tools/taosdemoAllTest/sml/insert-sml-telnet-alltype.json
+374
-0
tests/pytest/tools/taosdemoAllTest/sml/insertMaxNumPerReq-sml-telnet.json
...ls/taosdemoAllTest/sml/insertMaxNumPerReq-sml-telnet.json
+88
-0
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertWithJsonSml.py
...st/tools/taosdemoAllTest/taosdemoTestInsertWithJsonSml.py
+13
-6
未找到文件。
tests/pytest/tools/taosdemoAllTest/sml/insert-sml-json-alltype.json
0 → 100644
浏览文件 @
e7173a67
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count_create_tbl"
:
4
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"insert_interval"
:
0
,
"interlace_rows"
:
50000
,
"num_of_records_per_req"
:
50000
,
"max_sql_len"
:
1025000
,
"databases"
:
[{
"dbinfo"
:
{
"name"
:
"db"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
50
,
"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"
:
"stb0"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
2
,
"childtable_prefix"
:
"stb00_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"INT"
,
"count"
:
1
}]
},
{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
4
,
"childtable_prefix"
:
"stb02_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"TINYINT"
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
1
}]
},
{
"name"
:
"stb3"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
5
,
"childtable_prefix"
:
"stb03_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BIGINT"
}],
"tags"
:
[{
"type"
:
"BIGINT"
,
"count"
:
1
}]
},
{
"name"
:
"stb4"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"stb04_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"SMALLINT"
}],
"tags"
:
[{
"type"
:
"SMALLINT"
,
"count"
:
1
}]
},
{
"name"
:
"stb5"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
40
,
"childtable_prefix"
:
"stb05_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"FLOAT"
}],
"tags"
:
[{
"type"
:
"FLOAT"
,
"count"
:
1
}]
},
{
"name"
:
"stb6"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"stb06_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"DOUBLE"
}],
"tags"
:
[{
"type"
:
"DOUBLE"
,
"count"
:
1
}]
},
{
"name"
:
"stb7"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
30
,
"childtable_prefix"
:
"stb07_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[
{
"type"
:
"BOOL"
}],
"tags"
:
[{
"type"
:
"BOOL"
,
"count"
:
1
}]
},
{
"name"
:
"stb8"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
60
,
"childtable_prefix"
:
"stb08_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"NCHAR"
,
"len"
:
16
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"NCHAR"
,
"count"
:
1
}]
},
{
"name"
:
"stb9"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_prefix"
:
"stb09_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"BINARY"
,
"count"
:
1
}]
}]
}]
}
tests/pytest/tools/taosdemoAllTest/sml/insert-sml-telnet-alltype.json
0 → 100644
浏览文件 @
e7173a67
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count_create_tbl"
:
4
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"insert_interval"
:
0
,
"interlace_rows"
:
50000
,
"num_of_records_per_req"
:
50000
,
"max_sql_len"
:
1025000
,
"databases"
:
[{
"dbinfo"
:
{
"name"
:
"db"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
50
,
"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"
:
"stb0"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
2
,
"childtable_prefix"
:
"stb00_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"INT"
,
"count"
:
1
}]
},
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_prefix"
:
"stb01_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"UINT"
}],
"tags"
:
[{
"type"
:
"UINT"
,
"count"
:
1
}]
},
{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
4
,
"childtable_prefix"
:
"stb02_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"TINYINT"
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
1
}]
},
{
"name"
:
"stb3"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
5
,
"childtable_prefix"
:
"stb03_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BIGINT"
}],
"tags"
:
[{
"type"
:
"BIGINT"
,
"count"
:
1
}]
},
{
"name"
:
"stb4"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"stb04_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"SMALLINT"
}],
"tags"
:
[{
"type"
:
"SMALLINT"
,
"count"
:
1
}]
},
{
"name"
:
"stb5"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
40
,
"childtable_prefix"
:
"stb05_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"FLOAT"
}],
"tags"
:
[{
"type"
:
"FLOAT"
,
"count"
:
1
}]
},
{
"name"
:
"stb6"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"stb06_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"DOUBLE"
}],
"tags"
:
[{
"type"
:
"DOUBLE"
,
"count"
:
1
}]
},
{
"name"
:
"stb7"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
30
,
"childtable_prefix"
:
"stb07_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[
{
"type"
:
"BOOL"
}],
"tags"
:
[{
"type"
:
"BOOL"
,
"count"
:
1
}]
},
{
"name"
:
"stb8"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
60
,
"childtable_prefix"
:
"stb08_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"NCHAR"
,
"len"
:
16
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"NCHAR"
,
"count"
:
1
}]
},
{
"name"
:
"stb9"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_prefix"
:
"stb09_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"BINARY"
,
"count"
:
1
}]
},
{
"name"
:
"stb10"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_prefix"
:
"stb10_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"UBIGINT"
}],
"tags"
:
[{
"type"
:
"UBIGINT"
,
"count"
:
1
}]
},
{
"name"
:
"stb11"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_prefix"
:
"stb11_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"UTINYINT"
}],
"tags"
:
[{
"type"
:
"UTINYINT"
,
"count"
:
1
}]
},
{
"name"
:
"stb12"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_prefix"
:
"stb12_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[
{
"type"
:
"USMALLINT"
}],
"tags"
:
[{
"type"
:
"USMALLINT"
,
"count"
:
1
}]
}]
}]
}
tests/pytest/tools/taosdemoAllTest/sml/insertMaxNumPerReq-sml-telnet.json
0 → 100644
浏览文件 @
e7173a67
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count_create_tbl"
:
4
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"insert_interval"
:
0
,
"interlace_rows"
:
50000
,
"num_of_records_per_req"
:
50000
,
"max_sql_len"
:
1025000
,
"databases"
:
[{
"dbinfo"
:
{
"name"
:
"db"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
50
,
"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"
:
"stb0"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
100
,
"childtable_prefix"
:
"stb00_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
50000
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"TINYINT"
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
1
}]
},
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
100
,
"childtable_prefix"
:
"stb01_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
50000
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"insert_interval"
:
0
,
"max_sql_len"
:
1025000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2012-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"TINYINT"
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
1
}]
}]
}]
}
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertWithJsonSml.py
浏览文件 @
e7173a67
...
@@ -185,12 +185,19 @@ class TDTestCase:
...
@@ -185,12 +185,19 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
"2019-10-01 00:00:00"
)
tdSql
.
checkData
(
0
,
0
,
"2019-10-01 00:00:00"
)
tdSql
.
query
(
"select last(ts) from blf.p_0_topics_6 "
)
tdSql
.
query
(
"select last(ts) from blf.p_0_topics_6 "
)
tdSql
.
checkData
(
0
,
0
,
"2020-09-29 23:59:00"
)
tdSql
.
checkData
(
0
,
0
,
"2020-09-29 23:59:00"
)
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/sml/insertMaxNumPerReq-sml.json -y "
%
binPath
)
# it will be commented in ci because it spend too much time to insert data, but when you can excute it when you want to test this case.
tdSql
.
execute
(
"use db"
)
# os.system("%staosdemo -f tools/taosdemoAllTest/sml/insertMaxNumPerReq-sml.json -y " % binPath)
tdSql
.
query
(
"select count(*) from stb0"
)
# tdSql.execute("use db")
tdSql
.
checkData
(
0
,
0
,
5000000
)
# tdSql.query("select count(*) from stb0")
tdSql
.
query
(
"select count(*) from stb1"
)
# tdSql.checkData(0, 0, 5000000)
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-telnet.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
# insert: timestamp and step
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录