Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
5496f70f
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看板
提交
5496f70f
编写于
12月 15, 2021
作者:
P
plum-lihui
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' of
https://github.com/taosdata/TDengine
into develop
上级
fffedcf1
abb1c0f9
变更
29
展开全部
隐藏空白更改
内联
并排
Showing
29 changed file
with
1534 addition
and
328 deletion
+1534
-328
src/kit/taos-tools
src/kit/taos-tools
+1
-1
tests/pytest/fulltest.sh
tests/pytest/fulltest.sh
+3
-0
tests/pytest/functions/variable_httpDbNameMandatory.py
tests/pytest/functions/variable_httpDbNameMandatory.py
+8
-2
tests/pytest/tag_lite/json_tag_extra.py
tests/pytest/tag_lite/json_tag_extra.py
+591
-0
tests/pytest/tools/taosdemoAllTest/insert-1s1tntmr.json
tests/pytest/tools/taosdemoAllTest/insert-1s1tntmr.json
+2
-2
tests/pytest/tools/taosdemoAllTest/insert-chinese.json
tests/pytest/tools/taosdemoAllTest/insert-chinese.json
+63
-0
tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-N00.json
...est/tools/taosdemoAllTest/insert-drop-exist-auto-N00.json
+6
-6
tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-Y00.json
...est/tools/taosdemoAllTest/insert-drop-exist-auto-Y00.json
+6
-6
tests/pytest/tools/taosdemoAllTest/insert-interval-speed.json
...s/pytest/tools/taosdemoAllTest/insert-interval-speed.json
+4
-4
tests/pytest/tools/taosdemoAllTest/insertBinaryLenLarge16374AllcolLar49151-error.json
...llTest/insertBinaryLenLarge16374AllcolLar49151-error.json
+88
-0
tests/pytest/tools/taosdemoAllTest/insertBinaryLenLarge16374AllcolLar49151.json
...sdemoAllTest/insertBinaryLenLarge16374AllcolLar49151.json
+0
-52
tests/pytest/tools/taosdemoAllTest/insertColumnsAndTagNum4096.json
...est/tools/taosdemoAllTest/insertColumnsAndTagNum4096.json
+1
-1
tests/pytest/tools/taosdemoAllTest/querySuperMutisql100.json
tests/pytest/tools/taosdemoAllTest/querySuperMutisql100.json
+1
-1
tests/pytest/tools/taosdemoAllTest/sml/insert-allDataType-sml.json
...est/tools/taosdemoAllTest/sml/insert-allDataType-sml.json
+3
-3
tests/pytest/tools/taosdemoAllTest/sml/insert-sml-json-alltype.json
...st/tools/taosdemoAllTest/sml/insert-sml-json-alltype.json
+83
-5
tests/pytest/tools/taosdemoAllTest/sml/insert-sml-telnet-alltype.json
.../tools/taosdemoAllTest/sml/insert-sml-telnet-alltype.json
+25
-25
tests/pytest/tools/taosdemoAllTest/sml/insert-sml-timestamp.json
...ytest/tools/taosdemoAllTest/sml/insert-sml-timestamp.json
+113
-0
tests/pytest/tools/taosdemoAllTest/sml/insertBinaryLenLarge16374AllcolLar49151-error-sml.json
...ml/insertBinaryLenLarge16374AllcolLar49151-error-sml.json
+88
-0
tests/pytest/tools/taosdemoAllTest/sml/insertBinaryLenLarge16374AllcolLar49151-sml.json
...Test/sml/insertBinaryLenLarge16374AllcolLar49151-sml.json
+0
-52
tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-N00-stmt.json
...taosdemoAllTest/stmt/insert-drop-exist-auto-N00-stmt.json
+18
-18
tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-Y00-stmt.json
...taosdemoAllTest/stmt/insert-drop-exist-auto-Y00-stmt.json
+12
-12
tests/pytest/tools/taosdemoAllTest/stmt/insertBinaryLenLarge16374AllcolLar49151-error-stmt.json
...t/insertBinaryLenLarge16374AllcolLar49151-error-stmt.json
+88
-0
tests/pytest/tools/taosdemoAllTest/stmt/insertBinaryLenLarge16374AllcolLar49151-stmt.json
...st/stmt/insertBinaryLenLarge16374AllcolLar49151-stmt.json
+0
-52
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertAllType.py
...pytest/tools/taosdemoAllTest/taosdemoTestInsertAllType.py
+47
-2
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertShell.py
...s/pytest/tools/taosdemoAllTest/taosdemoTestInsertShell.py
+184
-0
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertWithJson.py
...ytest/tools/taosdemoAllTest/taosdemoTestInsertWithJson.py
+38
-25
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertWithJsonSml.py
...st/tools/taosdemoAllTest/taosdemoTestInsertWithJsonSml.py
+51
-53
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertWithJsonStmt.py
...t/tools/taosdemoAllTest/taosdemoTestInsertWithJsonStmt.py
+4
-0
tests/pytest/tools/taosdemoAllTest/taosdemoTestQueryWithJson.py
...pytest/tools/taosdemoAllTest/taosdemoTestQueryWithJson.py
+6
-6
未找到文件。
taos-tools
@
0b4a16e9
比较
78519c0c
...
0b4a16e9
Subproject commit
78519c0c90a261b6a559c6bbe7f3d3b5a7b630b4
Subproject commit
0b4a16e96b5cc9cb6e4f8cacf6a1f3028c91adb0
tests/pytest/fulltest.sh
浏览文件 @
5496f70f
...
...
@@ -52,6 +52,8 @@ python3 ./test.py -f table/create_db_from_normal_db.py
#stable
python3 ./test.py
-f
stable/insert.py
python3 test.py
-f
tools/taosdemoAllTest/taosdemoTestInsertWithJsonStmt.py
python3 test.py
-f
tools/taosdemoAllTest/taosdemoTestInsertWithJsonSml.py
python3 test.py
-f
tag_lite/json_tag_extra.py
# tag
python3 ./test.py
-f
tag_lite/filter.py
...
...
@@ -223,6 +225,7 @@ python3 ./test.py -f perfbenchmark/bug3433.py
python3 test.py
-f
tools/taosdemoAllTest/taosdemoTestInsertWithJson.py
python3 test.py
-f
tools/taosdemoAllTest/taosdemoTestQueryWithJson.py
python3 test.py
-f
tools/taosdemoAllTest/taosdemoTestInsertAllType.py
python3 test.py
-f
tools/taosdemoAllTest/taosdemoTestInsertShell.py
#query
python3 test.py
-f
query/distinctOneColTb.py
...
...
tests/pytest/functions/variable_httpDbNameMandatory.py
浏览文件 @
5496f70f
...
...
@@ -34,11 +34,15 @@ class TDTestCase:
def
getBuildPath
(
self
)
->
str
:
selfPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
global
cfgPath
if
(
"community"
in
selfPath
):
projPath
=
selfPath
[:
selfPath
.
find
(
"community"
)]
cfgPath
=
projPath
+
"/community/sim/dnode1/cfg"
else
:
projPath
=
selfPath
[:
selfPath
.
find
(
"tests"
)]
cfgPath
=
projPath
+
"/sim/dnode1/cfg"
for
root
,
dirs
,
files
in
os
.
walk
(
projPath
):
if
(
"taosd"
in
files
):
...
...
@@ -53,8 +57,10 @@ class TDTestCase:
if
(
"community"
in
selfPath
):
cfgDir
=
self
.
getBuildPath
()
+
"/community/sim/dnode1/cfg"
else
:
cfgDir
=
self
.
getBuildPath
()
+
"/sim/dnode1/cfg"
return
cfgDir
def
getCfgFile
(
self
)
->
str
:
...
...
@@ -85,8 +91,8 @@ class TDTestCase:
def
TS834
(
self
):
tdLog
.
printNoPrefix
(
"==========TS-782=========="
)
tdSql
.
prepare
()
cfgfile
=
self
.
getCfgFile
()
buildPath
=
self
.
getBuildPath
()
cfgfile
=
cfgPath
+
"/taos.cfg"
tdSql
.
execute
(
"show variables"
)
res_com
=
tdSql
.
cursor
.
fetchall
()
...
...
tests/pytest/tag_lite/json_tag_extra.py
0 → 100644
浏览文件 @
5496f70f
此差异已折叠。
点击以展开。
tests/pytest/tools/taosdemoAllTest/insert-1s1tntmr.json
浏览文件 @
5496f70f
...
...
@@ -41,7 +41,7 @@
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
100
00
,
"insert_rows"
:
100
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
...
...
@@ -67,7 +67,7 @@
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
200
00
,
"insert_rows"
:
200
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
...
...
tests/pytest/tools/taosdemoAllTest/insert-chinese.json
0 → 100644
浏览文件 @
5496f70f
{
"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"
:
100
,
"num_of_records_per_req"
:
1000
,
"max_sql_len"
:
1024000
,
"chinese"
:
"yes"
,
"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"
:
10
,
"childtable_prefix"
:
"stb00_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
20
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
150
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"INT"
},
{
"type"
:
"DOUBLE"
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
2
},
{
"type"
:
"nchar"
,
"len"
:
32
,
"count"
:
2
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"count"
:
1
},
{
"type"
:
"nchar"
,
"count"
:
2
}]
}]
}]
}
tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-N00.json
浏览文件 @
5496f70f
...
...
@@ -32,7 +32,7 @@
"update"
:
0
},
"super_tables"
:
[{
"name"
:
"stb"
,
"name"
:
"stb
1
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"123"
,
"childtable_count"
:
20
,
...
...
@@ -56,7 +56,7 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
2
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"no"
,
"childtable_count"
:
20
,
...
...
@@ -80,7 +80,7 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
3
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"yes"
,
"childtable_count"
:
20
,
...
...
@@ -104,7 +104,7 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
4
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"123"
,
"childtable_count"
:
20
,
...
...
@@ -128,7 +128,7 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
5
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"no"
,
"childtable_count"
:
20
,
...
...
@@ -152,7 +152,7 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
6
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"yes"
,
"childtable_count"
:
20
,
...
...
tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-Y00.json
浏览文件 @
5496f70f
...
...
@@ -32,7 +32,7 @@
"update"
:
0
},
"super_tables"
:
[{
"name"
:
"stb"
,
"name"
:
"stb
1
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"123"
,
"childtable_count"
:
20
,
...
...
@@ -56,7 +56,7 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
2
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"no"
,
"childtable_count"
:
20
,
...
...
@@ -80,7 +80,7 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
3
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"yes"
,
"childtable_count"
:
20
,
...
...
@@ -104,7 +104,7 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
4
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"123"
,
"childtable_count"
:
20
,
...
...
@@ -128,7 +128,7 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
5
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"no"
,
"childtable_count"
:
20
,
...
...
@@ -152,7 +152,7 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
6
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"yes"
,
"childtable_count"
:
20
,
...
...
tests/pytest/tools/taosdemoAllTest/insert-interval-speed.json
浏览文件 @
5496f70f
...
...
@@ -35,13 +35,13 @@
"super_tables"
:
[{
"name"
:
"stb0"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
10
0
,
"childtable_count"
:
10
,
"childtable_prefix"
:
"stb00_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
200
00
,
"insert_rows"
:
200
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
...
...
@@ -61,13 +61,13 @@
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
10
0
,
"childtable_count"
:
2
0
,
"childtable_prefix"
:
"stb01_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
200
00
,
"insert_rows"
:
200
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
...
...
tests/pytest/tools/taosdemoAllTest/insertBinaryLenLarge16374AllcolLar49151-error.json
0 → 100644
浏览文件 @
5496f70f
{
"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"
:
10
,
"num_of_records_per_req"
:
10240000000
,
"max_sql_len"
:
10240000000
,
"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"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb02_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16375
,
"count"
:
1
},{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
{
"name"
:
"stb4"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb04_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
100
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16371
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
6
},{
"type"
:
"TINYINT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
}]
}]
}
tests/pytest/tools/taosdemoAllTest/insertBinaryLenLarge16374AllcolLar49151.json
浏览文件 @
5496f70f
...
...
@@ -109,58 +109,6 @@
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16371
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
6
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb02_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16375
,
"count"
:
1
},{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
{
"name"
:
"stb4"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb04_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
100
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16371
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
6
},{
"type"
:
"TINYINT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
}]
}]
}
tests/pytest/tools/taosdemoAllTest/insertColumnsAndTagNum4096.json
浏览文件 @
5496f70f
...
...
@@ -55,7 +55,7 @@
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"INT"
},
{
"type"
:
"DOUBLE"
,
"count"
:
1004
},
{
"type"
:
"BINARY"
,
"len"
:
5
,
"count"
:
3075
},
{
"type"
:
"BINARY"
,
"len"
:
32
,
"count"
:
6
}],
"columns"
:
[{
"type"
:
"INT"
},
{
"type"
:
"DOUBLE"
,
"count"
:
1004
},
{
"type"
:
"BINARY"
,
"len"
:
1
,
"count"
:
3075
},
{
"type"
:
"BINARY"
,
"len"
:
32
,
"count"
:
6
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
7
}]
}]
}]
...
...
tests/pytest/tools/taosdemoAllTest/querySuperMutisql100.json
浏览文件 @
5496f70f
...
...
@@ -11,7 +11,7 @@
"super_table_query"
:
{
"stblname"
:
"stb0"
,
"query_interval"
:
10000
,
"
concurrent
"
:
9
,
"
threads
"
:
9
,
"sqls"
:
[
{
"sql"
:
"select last_row(*) from xxxx"
,
...
...
tests/pytest/tools/taosdemoAllTest/sml/insert-allDataType-sml.json
浏览文件 @
5496f70f
...
...
@@ -35,7 +35,7 @@
"super_tables"
:
[{
"name"
:
"stb0"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
10
00
,
"childtable_count"
:
10
,
"childtable_prefix"
:
"stb00_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
1
,
...
...
@@ -55,13 +55,13 @@
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"INT"
},
{
"type"
:
"
TIMESTAMP"
},
{
"type"
:
"
BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
16
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
1
}],
"columns"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
16
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"INT"
},
{
"type"
:
"BIGINT"
},
{
"type"
:
"FLOAT"
},
{
"type"
:
"DOUBLE"
},
{
"type"
:
"SMALLINT"
},
{
"type"
:
"TINYINT"
},
{
"type"
:
"BOOL"
},
{
"type"
:
"NCHAR"
,
"len"
:
16
,
"count"
:
1
},
{
"type"
:
"UINT"
},
{
"type"
:
"UBIGINT"
},
{
"type"
:
"UTINYINT"
},
{
"type"
:
"USMALLINT"
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
1
}]
},
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
100
0
,
"childtable_count"
:
2
0
,
"childtable_prefix"
:
"stb01_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
10
,
...
...
tests/pytest/tools/taosdemoAllTest/sml/insert-sml-json-alltype.json
浏览文件 @
5496f70f
...
...
@@ -35,14 +35,14 @@
"super_tables"
:
[{
"name"
:
"stb0"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
2
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb00_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
0
,
...
...
@@ -59,16 +59,16 @@
"tags"
:
[{
"type"
:
"INT"
,
"count"
:
1
}]
},
{
"name"
:
"stb
2
"
,
"name"
:
"stb
1
"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
4
,
"childtable_count"
:
2
,
"childtable_prefix"
:
"stb02_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"json"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
@@ -265,6 +265,84 @@
"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/insert-sml-telnet-alltype.json
浏览文件 @
5496f70f
...
...
@@ -35,14 +35,14 @@
"super_tables"
:
[{
"name"
:
"stb0"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
2
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb00_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
0
,
...
...
@@ -61,14 +61,14 @@
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_count"
:
2
,
"childtable_prefix"
:
"stb01_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
@@ -87,14 +87,14 @@
{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
4
,
"childtable_count"
:
3
,
"childtable_prefix"
:
"stb02_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
@@ -113,14 +113,14 @@
{
"name"
:
"stb3"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
5
,
"childtable_count"
:
4
,
"childtable_prefix"
:
"stb03_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
@@ -139,14 +139,14 @@
{
"name"
:
"stb4"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
6
,
"childtable_count"
:
5
,
"childtable_prefix"
:
"stb04_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
3
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
@@ -165,14 +165,14 @@
{
"name"
:
"stb5"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
15
,
"childtable_count"
:
6
,
"childtable_prefix"
:
"stb05_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
2
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
@@ -191,7 +191,7 @@
{
"name"
:
"stb6"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
20
,
"childtable_count"
:
7
,
"childtable_prefix"
:
"stb06_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
...
...
@@ -217,14 +217,14 @@
{
"name"
:
"stb7"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
30
,
"childtable_count"
:
8
,
"childtable_prefix"
:
"stb07_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
,
"insert_rows"
:
10
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
@@ -243,14 +243,14 @@
{
"name"
:
"stb8"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
20
,
"childtable_count"
:
9
,
"childtable_prefix"
:
"stb08_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
3
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
@@ -269,14 +269,14 @@
{
"name"
:
"stb9"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_count"
:
10
,
"childtable_prefix"
:
"stb09_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
@@ -295,14 +295,14 @@
{
"name"
:
"stb10"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_count"
:
11
,
"childtable_prefix"
:
"stb10_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
@@ -321,14 +321,14 @@
{
"name"
:
"stb11"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_count"
:
12
,
"childtable_prefix"
:
"stb11_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
@@ -347,14 +347,14 @@
{
"name"
:
"stb12"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
3
,
"childtable_count"
:
1
3
,
"childtable_prefix"
:
"stb12_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"line_protocol"
:
"telnet"
,
"insert_rows"
:
5
0
,
"insert_rows"
:
1
0
,
"childtable_limit"
:
-1
,
"childtable_offset"
:
0
,
"interlace_rows"
:
32767
,
...
...
tests/pytest/tools/taosdemoAllTest/sml/insert-sml-timestamp.json
0 → 100644
浏览文件 @
5496f70f
{
"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"
:
3
,
"childtable_prefix"
:
"stb12_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"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"
:
"TIMESTAMP"
}],
"tags"
:
[{
"type"
:
"TIMESTAMP"
,
"count"
:
1
}]
},
{
"name"
:
"stb1"
,
"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"
:
"TIMESTAMP"
}],
"tags"
:
[{
"type"
:
"TIMESTAMP"
,
"count"
:
1
}]
},
{
"name"
:
"stb2"
,
"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"
:
"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"
:
"TIMESTAMP"
}],
"tags"
:
[{
"type"
:
"TIMESTAMP"
,
"count"
:
1
}]
}]
}]
}
tests/pytest/tools/taosdemoAllTest/sml/insertBinaryLenLarge16374AllcolLar49151-error-sml.json
0 → 100644
浏览文件 @
5496f70f
{
"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"
:
10
,
"num_of_records_per_req"
:
10240000000
,
"max_sql_len"
:
10240000000
,
"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"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb02_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16375
,
"count"
:
1
},{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
{
"name"
:
"stb4"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb04_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
100
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16371
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
6
},{
"type"
:
"TINYINT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
}]
}]
}
tests/pytest/tools/taosdemoAllTest/sml/insertBinaryLenLarge16374AllcolLar49151-sml.json
浏览文件 @
5496f70f
...
...
@@ -109,58 +109,6 @@
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16371
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
6
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb02_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16375
,
"count"
:
1
},{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
{
"name"
:
"stb4"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb04_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"sml"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
100
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16371
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
6
},{
"type"
:
"TINYINT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
}]
}]
}
tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-N00-stmt.json
浏览文件 @
5496f70f
...
...
@@ -32,14 +32,14 @@
"update"
:
0
},
"super_tables"
:
[{
"name"
:
"stb"
,
"name"
:
"stb
1
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"123"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"NN123_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"
rand
"
,
"insert_mode"
:
"
stmt
"
,
"data_source"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
@@ -56,14 +56,14 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
2
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"no"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"NNN_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"
rand
"
,
"insert_mode"
:
"
stmt
"
,
"data_source"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
@@ -80,14 +80,14 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
3
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"yes"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"NNY_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"
rand
"
,
"insert_mode"
:
"
stmt
"
,
"data_source"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
@@ -104,14 +104,14 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
4
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"123"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"NY123_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"
rand
"
,
"insert_mode"
:
"
stmt
"
,
"data_source"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
@@ -128,14 +128,14 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
5
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"no"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"NYN_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"
rand
"
,
"insert_mode"
:
"
stmt
"
,
"data_source"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
@@ -152,14 +152,14 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
6
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"yes"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"NYY_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"
rand
"
,
"insert_mode"
:
"
stmt
"
,
"data_source"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-Y00-stmt.json
浏览文件 @
5496f70f
...
...
@@ -32,14 +32,14 @@
"update"
:
0
},
"super_tables"
:
[{
"name"
:
"stb"
,
"name"
:
"stb
1
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"123"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"YN123_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
@@ -56,14 +56,14 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
2
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"no"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"YNN_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
@@ -80,14 +80,14 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
3
"
,
"child_table_exists"
:
"no"
,
"auto_create_table"
:
"yes"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"YNY_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
@@ -104,14 +104,14 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
4
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"123"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"YY123_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
@@ -128,14 +128,14 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
5
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"no"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"YYN_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
@@ -152,14 +152,14 @@
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
}]
},{
"name"
:
"stb"
,
"name"
:
"stb
6
"
,
"child_table_exists"
:
"yes"
,
"auto_create_table"
:
"yes"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"YYY_"
,
"batch_create_tbl_num"
:
100
,
"data_source"
:
"rand"
,
"insert_mode"
:
"
stmt
"
,
"insert_mode"
:
"
taosc
"
,
"insert_rows"
:
5
,
"childtable_limit"
:
40
,
"childtable_offset"
:
0
,
...
...
tests/pytest/tools/taosdemoAllTest/stmt/insertBinaryLenLarge16374AllcolLar49151-error-stmt.json
0 → 100644
浏览文件 @
5496f70f
{
"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"
:
10
,
"num_of_records_per_req"
:
10240000000
,
"max_sql_len"
:
10240000000
,
"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"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb02_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"stmt"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16375
,
"count"
:
1
},{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
{
"name"
:
"stb4"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb04_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"stmt"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
100
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16371
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
6
},{
"type"
:
"TINYINT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
}]
}]
}
tests/pytest/tools/taosdemoAllTest/stmt/insertBinaryLenLarge16374AllcolLar49151-stmt.json
浏览文件 @
5496f70f
...
...
@@ -109,58 +109,6 @@
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16371
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
6
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb02_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"stmt"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16375
,
"count"
:
1
},{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
{
"name"
:
"stb4"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
1
,
"childtable_prefix"
:
"stb04_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
12
,
"data_source"
:
"rand"
,
"insert_mode"
:
"stmt"
,
"insert_rows"
:
1
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"multi_thread_write_one_tbl"
:
"no"
,
"interlace_rows"
:
100
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2020-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16371
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
6
},{
"type"
:
"TINYINT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
}]
}]
}
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertAllType.py
浏览文件 @
5496f70f
...
...
@@ -48,7 +48,7 @@ class TDTestCase:
tdLog
.
info
(
"taosd found in %s"
%
buildPath
)
binPath
=
buildPath
+
"/build/bin/"
#
insert: create one or mutiple tables per sql and insert multiple rows per sql
#
taosc interface
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/insert-allDataType.json -y "
%
binPath
)
tdSql
.
execute
(
"use db"
)
tdSql
.
query
(
"select count (tbname) from stb0"
)
...
...
@@ -79,7 +79,52 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
200
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
200000
)
# insert-interface: sml
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insert-allDataType-sml.json -y "
%
binPath
)
tdSql
.
execute
(
"use db"
)
tdSql
.
query
(
"select count (tbname) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count (tbname) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
20
)
# tdSql.query("select last(ts) from db.stb00_0")
# tdSql.checkData(0, 0, "2020-10-01 00:00:00.019000")
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
1000
)
# tdSql.query("select last(ts) from db.stb01_0")
# tdSql.checkData(0, 0, "2020-11-01 00:00:00.190000")
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
4000
)
# # insert-interface: sml-json
# os.system("%staosBenchmark -f tools/taosdemoAllTest/sml/insert-sml-json-alltype.json -y " % binPath)
# tdSql.execute("use db")
# tdSql.query("show stables")
# for i in range(13):
# for j in range(13):
# if tdSql.queryResult[i][0] == 'stb%d'%j:
# # print(i,"stb%d"%j)
# tdSql.checkData(i, 4, j+1)
# insert-interface: sml-telnet
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insert-sml-telnet-alltype.json -y "
%
binPath
)
tdSql
.
execute
(
"use db"
)
tdSql
.
query
(
"show stables"
)
for
i
in
range
(
13
):
for
j
in
range
(
13
):
if
tdSql
.
queryResult
[
i
][
0
]
==
'stb%d'
%
j
:
# print(i,"stb%d"%j)
tdSql
.
checkData
(
i
,
4
,
j
+
1
)
for
i
in
range
(
13
):
tdSql
.
query
(
"select count(*) from stb%d"
%
i
)
tdSql
.
checkData
(
0
,
0
,
(
i
+
1
)
*
10
)
# insert-interface: sml-telnet
assert
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/sml/insert-sml-timestamp.json -y "
%
binPath
)
!=
0
# taosdemo command line
os
.
system
(
"%staosBenchmark -t 1000 -n 100 -T 10 -b INT,TIMESTAMP,BIGINT,FLOAT,DOUBLE,SMALLINT,TINYINT,BOOL,NCHAR,UINT,UBIGINT,UTINYINT,USMALLINT,BINARY -y "
%
binPath
)
tdSql
.
execute
(
"use test"
)
...
...
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertShell.py
0 → 100644
浏览文件 @
5496f70f
###################################################################
# 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
sys
import
os
from
util.log
import
*
from
util.cases
import
*
from
util.sql
import
*
from
util.dnodes
import
*
class
TDTestCase
:
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
(),
logSql
)
def
getBuildPath
(
self
):
selfPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
global
cfgPath
if
(
"community"
in
selfPath
):
projPath
=
selfPath
[:
selfPath
.
find
(
"community"
)]
cfgPath
=
projPath
+
"/community/sim/dnode1/cfg"
else
:
projPath
=
selfPath
[:
selfPath
.
find
(
"tests"
)]
cfgPath
=
projPath
+
"/sim/dnode1/cfg"
for
root
,
dirs
,
files
in
os
.
walk
(
projPath
):
if
(
"taosd"
in
files
):
rootRealPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
root
))
if
(
"packaging"
not
in
rootRealPath
):
buildPath
=
root
[:
len
(
root
)
-
len
(
"/build/bin"
)]
break
return
buildPath
# def checkGerData():
def
run
(
self
):
buildPath
=
self
.
getBuildPath
()
print
(
"%s"
%
cfgPath
)
if
(
buildPath
==
""
):
tdLog
.
exit
(
"taosd not found!"
)
else
:
tdLog
.
info
(
"taosd found in %s"
%
buildPath
)
binPath
=
buildPath
+
"/build/bin/"
tdLog
.
info
(
"create super table"
)
# create super table
os
.
system
(
"%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(15\) -w 4096
\
-T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test. "
%
(
binPath
,
cfgPath
))
tdSql
.
execute
(
"use db1"
)
tdSql
.
query
(
"describe meters;"
)
tdSql
.
checkRows
(
13
)
tdSql
.
query
(
"select count(*) from meters"
)
tdSql
.
checkData
(
0
,
0
,
1000
)
tdSql
.
query
(
"select count(tbname) from meters"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count(*) from `test.0`"
)
tdSql
.
checkData
(
0
,
0
,
100
)
tdLog
.
info
(
"create general table -N "
)
tdSql
.
execute
(
"drop database db1;"
)
# create general table -N
os
.
system
(
"%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(15\) -w 4096
\
-T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test. -N "
%
(
binPath
,
cfgPath
))
tdSql
.
execute
(
"use db1"
)
tdSql
.
query
(
"describe `test.0`;"
)
tdSql
.
checkRows
(
11
)
tdSql
.
error
(
"select count(*) from meters"
)
tdSql
.
error
(
"select count(tbname) from meters"
)
tdSql
.
query
(
"select count(*) from `test.0`"
)
tdSql
.
checkData
(
0
,
0
,
100
)
tdLog
.
info
(
"use diffrent interface stmt"
)
tdSql
.
execute
(
"drop database db1;"
)
# use diffrent interface-stmt
os
.
system
(
"%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,BINARY\(4000\) -w 40
\
-T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test. -I stmt "
%
(
binPath
,
cfgPath
))
tdSql
.
execute
(
"use db1"
)
tdSql
.
query
(
"select count(*) from meters"
)
tdSql
.
checkData
(
0
,
0
,
1000
)
tdSql
.
query
(
"select count(tbname) from meters"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count(*) from `test.0`"
)
tdSql
.
checkData
(
0
,
0
,
100
)
# tdLog.info("use diffrent interface rest")
# tdSql.execute("drop database db1;")
# # use diffrent interface -rest
# os.system("%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(15\) -w 4097 \
# -T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test. -I rest " % (binPath,cfgPath))
# tdSql.execute("use db1")
# tdSql.query("select count(*) from meters")
# tdSql.checkData(0, 0, 1000)
# tdSql.query("select count(tbname) from meters")
# tdSql.checkData(0, 0, 10)
# tdSql.query("select count(*) from `test.0`")
# tdSql.checkData(0, 0, 100)
tdLog
.
info
(
"use diffrent interface sml"
)
tdSql
.
execute
(
"drop database db1;"
)
# use diffrent interface-sml
os
.
system
(
"%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(15\) -w 1024
\
-T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test. -I sml "
%
(
binPath
,
cfgPath
))
tdSql
.
execute
(
"use db1"
)
tdSql
.
query
(
"select count(*) from meters"
)
tdSql
.
checkData
(
0
,
0
,
1000
)
tdSql
.
query
(
"select count(tbname) from meters"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdLog
.
info
(
"all data type"
)
tdSql
.
execute
(
"drop database db1;"
)
# all data type
os
.
system
(
"%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10
\
-b INT,TIMESTAMP,BIGINT,FLOAT,DOUBLE,SMALLINT,TINYINT,BOOL,UINT,UBIGINT,UTINYINT,USMALLINT,BINARY\(15\),NCHAR\(15\) -w 4096
\
-T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test. "
%
(
binPath
,
cfgPath
))
tdSql
.
execute
(
"use db1"
)
tdSql
.
query
(
"select count(*) from meters"
)
tdSql
.
checkData
(
0
,
0
,
1000
)
tdSql
.
query
(
"select count(tbname) from meters"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count(*) from `test.0`"
)
tdSql
.
checkData
(
0
,
0
,
100
)
tdLog
.
info
(
"all data type and interlace rows"
)
tdSql
.
execute
(
"drop database db1;"
)
# all data type
os
.
system
(
"%staosBenchmark -u root -c %s -h localhost -P 6030 -d db3 -a 1 -l 10
\
-b INT,TIMESTAMP,BIGINT,FLOAT,DOUBLE,SMALLINT,TINYINT,BOOL,UINT,UBIGINT,UTINYINT,USMALLINT,BINARY\(15\),NCHAR\(15\) -w 4096
\
-T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -B 1000 -M -x -y -O 10 -R 100 -E -m test. "
%
(
binPath
,
cfgPath
))
tdSql
.
execute
(
"use db3"
)
tdSql
.
query
(
"select count(*) from meters"
)
tdSql
.
checkData
(
0
,
0
,
1000
)
tdSql
.
query
(
"select count(tbname) from meters"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count(*) from `test.0`"
)
tdSql
.
checkData
(
0
,
0
,
100
)
tdLog
.
info
(
"all data type and too much para"
)
tdLog
.
info
(
"%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(15\) -w 4096
\
-T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test.taosdemo -u root -c %s -h
\
localhost -P 6030 -d db1 -a 1 -l 100 -b float,int,NCHAR\(15\) -w 4096 -T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test. "
%
(
binPath
,
cfgPath
,
cfgPath
))
tdSql
.
execute
(
"drop database db3;"
)
# repeate parameters
os
.
system
(
"%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(15\) -w 4096
\
-T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test.taosdemo -u root -c %s -h
\
localhost -P 6030 -d db1 -a 1 -l 100 -b float,int,NCHAR\(15\) -w 4096 -T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test. "
%
(
binPath
,
cfgPath
,
cfgPath
))
tdSql
.
execute
(
"use db1"
)
tdSql
.
query
(
"select count(*) from meters"
)
tdSql
.
checkData
(
0
,
0
,
1000
)
tdSql
.
query
(
"select count(tbname) from meters"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count(*) from `test.0`"
)
tdSql
.
checkData
(
0
,
0
,
100
)
# tdLog.info("%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(4096\) \
# -w 40 -T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test. -I stmt" % (binPath,cfgPath))
# # taosdemo error-exceeds max length
# assert os.system("%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(4096\) \
# -w 40 -T 8 -i 10 -S 1000 -r 1000000 -t 10 -n 100 -M -x -y -O 10 -R 100 -E -m test. -I taosc" % (binPath,cfgPath)) != 0
testcaseFilename
=
os
.
path
.
split
(
__file__
)[
-
1
]
os
.
system
(
"rm -rf ./insert_res*.txt*"
)
os
.
system
(
"rm -rf tools/taosdemoAllTest/%s.sql"
%
testcaseFilename
)
def
stop
(
self
):
tdSql
.
close
()
tdLog
.
success
(
"%s successfully executed"
%
__file__
)
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertWithJson.py
浏览文件 @
5496f70f
...
...
@@ -68,21 +68,21 @@ class TDTestCase:
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
2000
)
# restful connector insert data
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/insertRestful.json -y "
%
binPath
)
tdSql
.
execute
(
"use db"
)
tdSql
.
query
(
"select count (tbname) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count (tbname) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count(*) from stb00_0"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
100
)
tdSql
.
query
(
"select count(*) from stb01_1"
)
tdSql
.
checkData
(
0
,
0
,
20
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
200
)
#
#
restful connector insert data
#
os.system("%staosBenchmark -f tools/taosdemoAllTest/insertRestful.json -y " % binPath)
#
tdSql.execute("use db")
#
tdSql.query("select count (tbname) from stb0")
#
tdSql.checkData(0, 0, 10)
#
tdSql.query("select count (tbname) from stb1")
#
tdSql.checkData(0, 0, 10)
#
tdSql.query("select count(*) from stb00_0")
#
tdSql.checkData(0, 0, 10)
#
tdSql.query("select count(*) from stb0")
#
tdSql.checkData(0, 0, 100)
#
tdSql.query("select count(*) from stb01_1")
#
tdSql.checkData(0, 0, 20)
#
tdSql.query("select count(*) from stb1")
#
tdSql.checkData(0, 0, 200)
# default values json files
tdSql
.
execute
(
"drop database if exists db"
)
...
...
@@ -103,30 +103,30 @@ class TDTestCase:
tdSql
.
query
(
"select count (tbname) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
20
)
tdSql
.
query
(
"select count(*) from stb00_0"
)
tdSql
.
checkData
(
0
,
0
,
100
00
)
tdSql
.
checkData
(
0
,
0
,
100
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
1000
00
)
tdSql
.
checkData
(
0
,
0
,
1000
)
tdSql
.
query
(
"select count(*) from stb01_0"
)
tdSql
.
checkData
(
0
,
0
,
200
00
)
tdSql
.
checkData
(
0
,
0
,
200
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
4000
00
)
tdSql
.
checkData
(
0
,
0
,
4000
)
# insert: using parament "insert_interval to controls spped of insert.
# but We need to have accurate methods to control the speed, such as getting the speed value, checking the count and so on。
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/insert-interval-speed.json -y"
%
binPath
)
tdSql
.
execute
(
"use db"
)
tdSql
.
query
(
"show stables"
)
tdSql
.
checkData
(
0
,
4
,
10
0
)
tdSql
.
checkData
(
0
,
4
,
10
)
tdSql
.
query
(
"select count(*) from stb00_0"
)
tdSql
.
checkData
(
0
,
0
,
200
00
)
tdSql
.
checkData
(
0
,
0
,
200
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
2000
000
)
tdSql
.
checkData
(
0
,
0
,
2000
)
tdSql
.
query
(
"show stables"
)
tdSql
.
checkData
(
1
,
4
,
10
0
)
tdSql
.
checkData
(
1
,
4
,
2
0
)
tdSql
.
query
(
"select count(*) from stb01_0"
)
tdSql
.
checkData
(
0
,
0
,
200
00
)
tdSql
.
checkData
(
0
,
0
,
200
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
2000
000
)
tdSql
.
checkData
(
0
,
0
,
4
000
)
# spend 2min30s for 3 testcases.
# insert: drop and child_table_exists combination test
...
...
@@ -218,6 +218,10 @@ class TDTestCase:
tdSql
.
query
(
"select count(*) from db.stb3"
)
tdSql
.
checkRows
(
1
)
tdSql
.
execute
(
"drop database if exists db"
)
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/insertBinaryLenLarge16374AllcolLar49151-error.json -y "
%
binPath
)
tdSql
.
error
(
"select * from db.stb4"
)
tdSql
.
error
(
"select * from db.stb2"
)
tdSql
.
execute
(
"drop database if exists db"
)
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/insertNumOfrecordPerReq0.json -y "
%
binPath
)
tdSql
.
error
(
"select count(*) from db.stb0"
)
tdSql
.
execute
(
"drop database if exists db"
)
...
...
@@ -353,6 +357,15 @@ class TDTestCase:
tdSql
.
query
(
'show tables like
\'
YYY%
\'
'
)
#child_table_exists = yes, auto_create_table varies = yes
tdSql
.
checkRows
(
20
)
# insert: test chinese encoding
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/insert-chinese.json -y "
%
binPath
)
tdSql
.
execute
(
"use db"
)
tdSql
.
query
(
"select count (tbname) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count (*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
1500
)
# rm useless files
os
.
system
(
"rm -rf ./insert*_res.txt*"
)
...
...
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertWithJsonSml.py
浏览文件 @
5496f70f
...
...
@@ -56,12 +56,8 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count (tbname) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
20
)
tdSql
.
query
(
"select count(*) from stb00_0"
)
tdSql
.
checkData
(
0
,
0
,
100
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
1000
)
tdSql
.
query
(
"select count(*) from stb01_1"
)
tdSql
.
checkData
(
0
,
0
,
200
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
4000
)
...
...
@@ -73,31 +69,27 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count (tbname) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
15
)
tdSql
.
query
(
"select count(*) from stb00_0"
)
tdSql
.
checkData
(
0
,
0
,
150
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
1500
)
tdSql
.
query
(
"select count(*) from stb01_0"
)
tdSql
.
checkData
(
0
,
0
,
200
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
3000
)
# insert: using parament "insert_interval to controls spped of insert.
# but We need to have accurate methods to control the speed, such as getting the speed value, checking the count and so on。
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insert-interval-speed-sml.json -y"
%
binPath
)
tdSql
.
execute
(
"use db"
)
tdSql
.
query
(
"select tbname from
stb0"
)
tdSql
.
checkRows
(
100
)
tdSql
.
query
(
"select count(*) from stb00_0"
)
tdSql
.
checkData
(
0
,
0
,
20
)
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
2000
)
tdSql
.
query
(
"show stables"
)
tdSql
.
checkData
(
1
,
4
,
20
)
tdSql
.
query
(
"select count(*) from stb01_0"
)
tdSql
.
checkData
(
0
,
0
,
35
)
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
700
)
#
#
insert: using parament "insert_interval to controls spped of insert.
#
#
but We need to have accurate methods to control the speed, such as getting the speed value, checking the count and so on。
#
os.system("%staosBenchmark -f tools/taosdemoAllTest/sml/insert-interval-speed-sml.json -y" % binPath)
#
tdSql.execute("use db")
# tdSql.query("select tbname from db.
stb0")
#
tdSql.checkRows(100 )
# #
tdSql.query("select count(*) from stb00_0")
# #
tdSql.checkData(0, 0, 20)
#
tdSql.query("select count(*) from stb0")
#
tdSql.checkData(0, 0, 2000)
#
tdSql.query("show stables")
#
tdSql.checkData(1, 4, 20)
# #
tdSql.query("select count(*) from stb01_0")
# #
tdSql.checkData(0, 0, 35)
#
tdSql.query("select count(*) from stb1")
#
tdSql.checkData(0, 0, 700)
# spend 2min30s for 3 testcases.
# insert: drop and child_table_exists combination test
...
...
@@ -142,10 +134,10 @@ class TDTestCase:
# os.system("%staosBenchmark -f tools/taosdemoAllTest/sml/insertColumnsAndTagNum4096-sml.json -y " % binPath)
# tdSql.query("select count(*) from db.stb0")
# tdSql.checkData(0, 0, 10000)
tdSql
.
execute
(
"drop database if exists db"
)
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insertInterlaceRowsLarge1M-sml.json -y "
%
binPath
)
tdSql
.
query
(
"select count(*) from db.stb0"
)
tdSql
.
checkRows
(
0
)
#
tdSql.execute("drop database if exists db")
#
os.system("%staosBenchmark -f tools/taosdemoAllTest/sml/insertInterlaceRowsLarge1M-sml.json -y " % binPath)
#
tdSql.query("select count(*) from db.stb0")
#
tdSql.checkRows(0)
tdSql
.
execute
(
"drop database if exists db"
)
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insertColumnsNum0-sml.json -y "
%
binPath
)
tdSql
.
execute
(
"use db"
)
...
...
@@ -160,11 +152,13 @@ class TDTestCase:
tdSql
.
checkRows
(
1
)
tdSql
.
query
(
"select count(*) from db.stb1"
)
tdSql
.
checkRows
(
1
)
tdSql
.
error
(
"select * from db.stb4"
)
tdSql
.
error
(
"select * from db.stb2"
)
tdSql
.
query
(
"select count(*) from db.stb3"
)
tdSql
.
checkRows
(
1
)
tdSql
.
execute
(
"drop database if exists db"
)
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insertBinaryLenLarge16374AllcolLar49151-error-sml.json -y "
%
binPath
)
tdSql
.
error
(
"select * from db.stb4"
)
tdSql
.
error
(
"select * from db.stb2"
)
tdSql
.
execute
(
"drop database if exists db"
)
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insertNumOfrecordPerReq0-sml.json -y "
%
binPath
)
tdSql
.
error
(
"select count(*) from db.stb0"
)
tdSql
.
execute
(
"drop database if exists db"
)
...
...
@@ -177,14 +171,17 @@ class TDTestCase:
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insertChildTabLess0-sml.json -y "
%
binPath
)
tdSql
.
error
(
"use db"
)
tdSql
.
execute
(
"drop database if exists blf"
)
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insertTimestepMulRowsLargeint16-sml.json -y "
%
binPath
)
tdSql
.
execute
(
"use blf"
)
tdSql
.
query
(
"select ts from blf.p_0_topics_7 limit 262800,1"
)
tdSql
.
checkData
(
0
,
0
,
"2020-03-31 12:00:00.000"
)
tdSql
.
query
(
"select first(ts) from blf.p_0_topics_2"
)
tdSql
.
checkData
(
0
,
0
,
"2019-10-01 00:00:00"
)
tdSql
.
query
(
"select last(ts) from blf.p_0_topics_6 "
)
tdSql
.
checkData
(
0
,
0
,
"2020-09-29 23:59:00"
)
# child table name is invalid reading,so
# os.system("%staosBenchmark -f tools/taosdemoAllTest/sml/insertTimestepMulRowsLargeint16-sml.json -y " % binPath)
# tdSql.execute("use blf")
# tdSql.query("select ts from blf.p_0_topics_7 limit 262800,1")
# tdSql.checkData(0, 0, "2020-03-31 12:00:00.000")
# tdSql.query("select first(ts) from blf.p_0_topics_2")
# tdSql.checkData(0, 0, "2019-10-01 00:00:00")
# tdSql.query("select last(ts) from blf.p_0_topics_6 ")
# tdSql.checkData(0, 0, "2020-09-29 23:59:00")
# 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.
# os.system("%staosBenchmark -f tools/taosdemoAllTest/sml/insertMaxNumPerReq-sml.json -y " % binPath)
# tdSql.execute("use db")
...
...
@@ -200,6 +197,7 @@ class TDTestCase:
# tdSql.checkData(0, 0, 5000000)
# insert: timestamp and step
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insert-timestep-sml.json -y "
%
binPath
)
tdSql
.
execute
(
"use db"
)
...
...
@@ -207,12 +205,12 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
query
(
"select count (tbname) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
20
)
tdSql
.
query
(
"select last(ts) from db.stb00_0"
)
tdSql
.
checkData
(
0
,
0
,
"2020-10-01 00:00:00.019000"
)
#
tdSql.query("select last(ts) from db.stb00_0")
#
tdSql.checkData(0, 0, "2020-10-01 00:00:00.019000")
tdSql
.
query
(
"select count(*) from stb0"
)
tdSql
.
checkData
(
0
,
0
,
200
)
tdSql
.
query
(
"select last(ts) from db.stb01_0"
)
tdSql
.
checkData
(
0
,
0
,
"2020-11-01 00:00:00.190000"
)
#
tdSql.query("select last(ts) from db.stb01_0")
#
tdSql.checkData(0, 0, "2020-11-01 00:00:00.190000")
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
400
)
...
...
@@ -228,17 +226,17 @@ class TDTestCase:
tdSql
.
query
(
"select count(*) from stb1"
)
tdSql
.
checkData
(
0
,
0
,
10
)
# insert: sample json
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insert-sample-sml.json -y "
%
binPath
)
tdSql
.
execute
(
"use dbtest123"
)
tdSql
.
query
(
"select c2 from stb0"
)
tdSql
.
checkData
(
0
,
0
,
2147483647
)
tdSql
.
query
(
"select * from stb1 where t1=-127"
)
tdSql
.
checkRows
(
20
)
tdSql
.
query
(
"select * from stb1 where t2=127"
)
tdSql
.
checkRows
(
10
)
tdSql
.
query
(
"select * from stb1 where t2=126"
)
tdSql
.
checkRows
(
10
)
# insert:
doesn‘t currently supported
sample json
assert
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insert-sample-sml.json -y "
%
binPath
)
!=
0
#
tdSql.execute("use dbtest123")
#
tdSql.query("select c2 from stb0")
#
tdSql.checkData(0, 0, 2147483647)
#
tdSql.query("select * from stb1 where t1=-127")
#
tdSql.checkRows(20)
#
tdSql.query("select * from stb1 where t2=127")
#
tdSql.checkRows(10)
#
tdSql.query("select * from stb1 where t2=126")
#
tdSql.checkRows(10)
# insert: test interlace parament
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/sml/insert-interlace-row-sml.json -y "
%
binPath
)
...
...
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertWithJsonStmt.py
浏览文件 @
5496f70f
...
...
@@ -187,6 +187,10 @@ class TDTestCase:
tdSql
.
query
(
"select count(*) from db.stb3"
)
tdSql
.
checkRows
(
1
)
tdSql
.
execute
(
"drop database if exists db"
)
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/stmt/insertBinaryLenLarge16374AllcolLar49151-error-stmt.json -y "
%
binPath
)
tdSql
.
error
(
"select * from db.stb4"
)
tdSql
.
error
(
"select * from db.stb2"
)
tdSql
.
execute
(
"drop database if exists db"
)
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/stmt/insertNumOfrecordPerReq0-stmt.json -y "
%
binPath
)
tdSql
.
error
(
"select count(*) from db.stb0"
)
tdSql
.
execute
(
"drop database if exists db"
)
...
...
tests/pytest/tools/taosdemoAllTest/taosdemoTestQueryWithJson.py
浏览文件 @
5496f70f
...
...
@@ -174,15 +174,15 @@ class TDTestCase:
"2020-11-01 00:00:00.004"
)
# query times less than or equal to 100
os
.
system
(
assert
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/queryInsertdata.json"
%
binPath
)
os
.
system
(
binPath
)
==
0
assert
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/querySpeciMutisql100.json"
%
binPath
)
os
.
system
(
binPath
)
!=
0
assert
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/querySuperMutisql100.json"
%
binPath
)
binPath
)
==
0
# query result print QPS
os
.
system
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录