Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
482dbe63
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看板
提交
482dbe63
编写于
12月 17, 2021
作者:
haoranc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-10789]<test>:verify all data types in the taosdemo test of sml interface
上级
c322a78b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
59 addition
and
33 deletion
+59
-33
tests/pytest/tools/taosdemoAllTest/sml/insert-sml-json-alltype.json
...st/tools/taosdemoAllTest/sml/insert-sml-json-alltype.json
+50
-24
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertAllType.py
...pytest/tools/taosdemoAllTest/taosdemoTestInsertAllType.py
+9
-9
未找到文件。
tests/pytest/tools/taosdemoAllTest/sml/insert-sml-json-alltype.json
浏览文件 @
482dbe63
...
@@ -85,16 +85,16 @@
...
@@ -85,16 +85,16 @@
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
1
}]
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
1
}]
},
},
{
{
"name"
:
"stb
3
"
,
"name"
:
"stb
2
"
,
"child_table_exists"
:
"no"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
5
,
"childtable_count"
:
3
,
"childtable_prefix"
:
"stb03_"
,
"childtable_prefix"
:
"stb03_"
,
"auto_create_table"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"interlace_rows"
:
32767
,
...
@@ -111,16 +111,16 @@
...
@@ -111,16 +111,16 @@
"tags"
:
[{
"type"
:
"BIGINT"
,
"count"
:
1
}]
"tags"
:
[{
"type"
:
"BIGINT"
,
"count"
:
1
}]
},
},
{
{
"name"
:
"stb
4
"
,
"name"
:
"stb
3
"
,
"child_table_exists"
:
"no"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
20
,
"childtable_count"
:
4
,
"childtable_prefix"
:
"stb04_"
,
"childtable_prefix"
:
"stb04_"
,
"auto_create_table"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"interlace_rows"
:
32767
,
...
@@ -137,16 +137,16 @@
...
@@ -137,16 +137,16 @@
"tags"
:
[{
"type"
:
"SMALLINT"
,
"count"
:
1
}]
"tags"
:
[{
"type"
:
"SMALLINT"
,
"count"
:
1
}]
},
},
{
{
"name"
:
"stb
5
"
,
"name"
:
"stb
4
"
,
"child_table_exists"
:
"no"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
40
,
"childtable_count"
:
5
,
"childtable_prefix"
:
"stb05_"
,
"childtable_prefix"
:
"stb05_"
,
"auto_create_table"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"interlace_rows"
:
32767
,
...
@@ -163,16 +163,16 @@
...
@@ -163,16 +163,16 @@
"tags"
:
[{
"type"
:
"FLOAT"
,
"count"
:
1
}]
"tags"
:
[{
"type"
:
"FLOAT"
,
"count"
:
1
}]
},
},
{
{
"name"
:
"stb
6
"
,
"name"
:
"stb
5
"
,
"child_table_exists"
:
"no"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
15
,
"childtable_count"
:
6
,
"childtable_prefix"
:
"stb06_"
,
"childtable_prefix"
:
"stb06_"
,
"auto_create_table"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"interlace_rows"
:
32767
,
...
@@ -188,17 +188,43 @@
...
@@ -188,17 +188,43 @@
"columns"
:
[{
"type"
:
"DOUBLE"
}],
"columns"
:
[{
"type"
:
"DOUBLE"
}],
"tags"
:
[{
"type"
:
"DOUBLE"
,
"count"
:
1
}]
"tags"
:
[{
"type"
:
"DOUBLE"
,
"count"
:
1
}]
},
},
{
"name"
:
"stb6"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
7
,
"childtable_prefix"
:
"stb01_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
10
,
"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"
:
"stb7"
,
"name"
:
"stb7"
,
"child_table_exists"
:
"no"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
10
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb07_"
,
"childtable_prefix"
:
"stb07_"
,
"auto_create_table"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"interlace_rows"
:
32767
,
...
@@ -217,14 +243,14 @@
...
@@ -217,14 +243,14 @@
{
{
"name"
:
"stb8"
,
"name"
:
"stb8"
,
"child_table_exists"
:
"no"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
20
,
"childtable_count"
:
9
,
"childtable_prefix"
:
"stb08_"
,
"childtable_prefix"
:
"stb08_"
,
"auto_create_table"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"interlace_rows"
:
32767
,
...
@@ -243,14 +269,14 @@
...
@@ -243,14 +269,14 @@
{
{
"name"
:
"stb9"
,
"name"
:
"stb9"
,
"child_table_exists"
:
"no"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_count"
:
10
,
"childtable_prefix"
:
"stb09_"
,
"childtable_prefix"
:
"stb09_"
,
"auto_create_table"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"interlace_rows"
:
32767
,
...
@@ -269,14 +295,14 @@
...
@@ -269,14 +295,14 @@
{
{
"name"
:
"stb10"
,
"name"
:
"stb10"
,
"child_table_exists"
:
"no"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_count"
:
11
,
"childtable_prefix"
:
"stb10_"
,
"childtable_prefix"
:
"stb10_"
,
"auto_create_table"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"interlace_rows"
:
32767
,
...
@@ -295,14 +321,14 @@
...
@@ -295,14 +321,14 @@
{
{
"name"
:
"stb11"
,
"name"
:
"stb11"
,
"child_table_exists"
:
"no"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_count"
:
12
,
"childtable_prefix"
:
"stb11_"
,
"childtable_prefix"
:
"stb11_"
,
"auto_create_table"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"interlace_rows"
:
32767
,
...
@@ -321,14 +347,14 @@
...
@@ -321,14 +347,14 @@
{
{
"name"
:
"stb12"
,
"name"
:
"stb12"
,
"child_table_exists"
:
"no"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_count"
:
1
3
,
"childtable_prefix"
:
"stb12_"
,
"childtable_prefix"
:
"stb12_"
,
"auto_create_table"
:
"no"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
"interlace_rows"
:
32767
,
...
...
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertAllType.py
浏览文件 @
482dbe63
...
@@ -97,15 +97,15 @@ class TDTestCase:
...
@@ -97,15 +97,15 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
4000
)
tdSql
.
checkData
(
0
,
0
,
4000
)
#
# insert-interface: sml-json
# insert-interface: sml-json
#
os.system("%staosBenchmark -f tools/taosdemoAllTest/sml/insert-sml-json-alltype.json -y " % binPath)
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insert-sml-json-alltype.json -y "
%
binPath
)
#
tdSql.execute("use db")
tdSql
.
execute
(
"use db"
)
#
tdSql.query("show stables")
tdSql
.
query
(
"show stables"
)
#
for i in range(13):
for
i
in
range
(
13
):
#
for j in range(13):
for
j
in
range
(
13
):
#
if tdSql.queryResult[i][0] == 'stb%d'%j:
if
tdSql
.
queryResult
[
i
][
0
]
==
'stb%d'
%
j
:
#
# print(i,"stb%d"%j)
# print(i,"stb%d"%j)
#
tdSql.checkData(i, 4, j+1)
tdSql
.
checkData
(
i
,
4
,
j
+
1
)
# insert-interface: sml-telnet
# insert-interface: sml-telnet
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录