Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
d72f2547
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d72f2547
编写于
9月 24, 2021
作者:
J
jiajingbin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
save
上级
3fe13cf2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
28 deletion
+19
-28
tests/pytest/insert/openTsdbJsonInsert.py
tests/pytest/insert/openTsdbJsonInsert.py
+19
-28
未找到文件。
tests/pytest/insert/openTsdbJsonInsert.py
浏览文件 @
d72f2547
...
@@ -1201,7 +1201,6 @@ class TDTestCase:
...
@@ -1201,7 +1201,6 @@ class TDTestCase:
def
genMultiThreadSeq
(
self
,
sql_list
):
def
genMultiThreadSeq
(
self
,
sql_list
):
tlist
=
list
()
tlist
=
list
()
for
insert_sql
in
sql_list
:
for
insert_sql
in
sql_list
:
print
(
insert_sql
[
0
])
t
=
threading
.
Thread
(
target
=
self
.
_conn
.
insert_json_payload
,
args
=
(
json
.
dumps
(
insert_sql
[
0
]),))
t
=
threading
.
Thread
(
target
=
self
.
_conn
.
insert_json_payload
,
args
=
(
json
.
dumps
(
insert_sql
[
0
]),))
tlist
.
append
(
t
)
tlist
.
append
(
t
)
return
tlist
return
tlist
...
@@ -1341,26 +1340,18 @@ class TDTestCase:
...
@@ -1341,26 +1340,18 @@ class TDTestCase:
tb_name
=
tdCom
.
getLongName
(
7
,
"letters"
)
tb_name
=
tdCom
.
getLongName
(
7
,
"letters"
)
input_json
,
stb_name
=
self
.
genFullTypeJson
(
tb_name
=
tb_name
,
col_value
=
self
.
genTsColValue
(
value
=
"binaryTagValue"
,
t_type
=
"binary"
))
input_json
,
stb_name
=
self
.
genFullTypeJson
(
tb_name
=
tb_name
,
col_value
=
self
.
genTsColValue
(
value
=
"binaryTagValue"
,
t_type
=
"binary"
))
self
.
resCmp
(
input_json
,
stb_name
)
self
.
resCmp
(
input_json
,
stb_name
)
print
(
"input_json1-----"
,
input_json
)
s_stb_s_tb_d_ts_m_tag_list
=
[({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
0
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'pjndapjb'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'tuzsfrom'
,
'type'
:
'binary'
},
'id'
:
tb_name
}},
'punftb'
),
s_stb_s_tb_d_ts_m_tag_list
=
[({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
1626006833639000000
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'pjndapjb'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'tuzsfrom'
,
'type'
:
'binary'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
0
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'llqzvgvw'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'nttjdzgi'
,
'type'
:
'binary'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
1626006833639000001
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'llqzvgvw'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'nttjdzgi'
,
'type'
:
'binary'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
0
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'tclbosqc'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'uatpzgpi'
,
'type'
:
'binary'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
1626006833639000002
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'tclbosqc'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'uatpzgpi'
,
'type'
:
'binary'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
0
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'rlpuzodt'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
True
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'cwnpdnng'
,
'type'
:
'binary'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
1626006833639000003
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'rlpuzodt'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
True
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'cwnpdnng'
,
'type'
:
'binary'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
0
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'rhnikvfq'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
True
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'afcibyeb'
,
'type'
:
'binary'
},
'id'
:
tb_name
}},
'punftb'
)]
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
1626006833639000004
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'rhnikvfq'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
True
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'afcibyeb'
,
'type'
:
'binary'
},
'id'
:
tb_name
}},
'punftb'
)]
self
.
multiThreadRun
(
self
.
genMultiThreadSeq
(
s_stb_s_tb_d_ts_m_tag_list
))
# s_stb_s_tb_d_ts_m_tag_list = self.genSqlList(stb_name=stb_name, tb_name=tb_name)[8]
tdSql
.
query
(
f
"show tables;"
)
# print(s_stb_s_tb_d_ts_m_tag_list)
tdSql
.
checkRows
(
1
)
for
input_json
in
s_stb_s_tb_d_ts_m_tag_list
:
tdSql
.
query
(
f
"select * from
{
stb_name
}
"
)
print
(
"input_json2-----"
,
input_json
[
0
])
tdSql
.
checkRows
(
6
)
print
(
input_json
[
0
])
tdSql
.
query
(
f
"select * from
{
stb_name
}
where t8 is not NULL"
)
self
.
_conn
.
insert_json_payload
(
json
.
dumps
(
input_json
[
0
]))
tdSql
.
checkRows
(
6
)
# self.multiThreadRun(self.genMultiThreadSeq(s_stb_s_tb_d_ts_m_tag_list))
# tdSql.query(f"show tables;")
# tdSql.checkRows(1)
# tdSql.query(f"select * from {stb_name}")
# tdSql.checkRows(6)
# tdSql.query(f"select * from {stb_name} where t8 is not NULL")
# tdSql.checkRows(6)
def
sStbStbDdataDtsAtInsertMultiThreadCheckCase
(
self
):
def
sStbStbDdataDtsAtInsertMultiThreadCheckCase
(
self
):
"""
"""
...
@@ -1370,11 +1361,11 @@ class TDTestCase:
...
@@ -1370,11 +1361,11 @@ class TDTestCase:
tb_name
=
tdCom
.
getLongName
(
7
,
"letters"
)
tb_name
=
tdCom
.
getLongName
(
7
,
"letters"
)
input_json
,
stb_name
=
self
.
genFullTypeJson
(
tb_name
=
tb_name
,
col_value
=
self
.
genTsColValue
(
value
=
"binaryTagValue"
,
t_type
=
"binary"
))
input_json
,
stb_name
=
self
.
genFullTypeJson
(
tb_name
=
tb_name
,
col_value
=
self
.
genTsColValue
(
value
=
"binaryTagValue"
,
t_type
=
"binary"
))
self
.
resCmp
(
input_json
,
stb_name
)
self
.
resCmp
(
input_json
,
stb_name
)
s_stb_s_tb_d_ts_a_tag_list
=
[({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
1626006833639000000
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'pjndapjb'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'tuzsfrom'
,
'type'
:
'binary'
},
't8'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
't11'
:
{
'value'
:
'127'
,
'type'
:
'tinyint'
},
't10'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
'id'
:
tb_name
}},
'punftb'
),
s_stb_s_tb_d_ts_a_tag_list
=
[({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
0
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'pjndapjb'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'tuzsfrom'
,
'type'
:
'binary'
},
't8'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
't11'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't10'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
1626006833639000001
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'llqzvgvw'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'nttjdzgi'
,
'type'
:
'binary'
},
't8'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
't11'
:
{
'value'
:
'127'
,
'type'
:
'tinyint'
},
't10'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
0
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'llqzvgvw'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'nttjdzgi'
,
'type'
:
'binary'
},
't8'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
't11'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't10'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
1626006833639000002
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'tclbosqc'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'uatpzgpi'
,
'type'
:
'binary'
},
't8'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
't11'
:
{
'value'
:
'127'
,
'type'
:
'tinyint'
},
't10'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
0
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'tclbosqc'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'uatpzgpi'
,
'type'
:
'binary'
},
't8'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
't11'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't10'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
1626006833639000003
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'rlpuzodt'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'cwnpdnng'
,
'type'
:
'binary'
},
't8'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
't11'
:
{
'value'
:
'127'
,
'type'
:
'tinyint'
},
't10'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
0
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'rlpuzodt'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
False
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'cwnpdnng'
,
'type'
:
'binary'
},
't8'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
't11'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't10'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
'id'
:
tb_name
}},
'punftb'
),
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
1626006833639000004
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'rhnikvfq'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
True
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'afcibyeb'
,
'type'
:
'binary'
},
't8'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
't11'
:
{
'value'
:
'127'
,
'type'
:
'tinyint'
},
't10'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
'id'
:
tb_name
}},
'punftb'
)]
({
'metric'
:
stb_name
,
'timestamp'
:
{
'value'
:
0
,
'type'
:
'ns'
},
'value'
:
{
'value'
:
'rhnikvfq'
,
'type'
:
'binary'
},
'tags'
:
{
't0'
:
{
'value'
:
True
,
'type'
:
'bool'
},
't1'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't2'
:
{
'value'
:
32767
,
'type'
:
'smallint'
},
't3'
:
{
'value'
:
2147483647
,
'type'
:
'int'
},
't4'
:
{
'value'
:
9223372036854775807
,
'type'
:
'bigint'
},
't5'
:
{
'value'
:
11.12345027923584
,
'type'
:
'float'
},
't6'
:
{
'value'
:
22.123456789
,
'type'
:
'double'
},
't7'
:
{
'value'
:
'afcibyeb'
,
'type'
:
'binary'
},
't8'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
't11'
:
{
'value'
:
127
,
'type'
:
'tinyint'
},
't10'
:
{
'value'
:
'ncharTagValue'
,
'type'
:
'nchar'
},
'id'
:
tb_name
}},
'punftb'
)]
self
.
multiThreadRun
(
self
.
genMultiThreadSeq
(
s_stb_s_tb_d_ts_a_tag_list
))
self
.
multiThreadRun
(
self
.
genMultiThreadSeq
(
s_stb_s_tb_d_ts_a_tag_list
))
tdSql
.
query
(
f
"show tables;"
)
tdSql
.
query
(
f
"show tables;"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkRows
(
1
)
...
@@ -1493,8 +1484,8 @@ class TDTestCase:
...
@@ -1493,8 +1484,8 @@ class TDTestCase:
# self.sStbStbDdataDtsInsertMultiThreadCheckCase()
# self.sStbStbDdataDtsInsertMultiThreadCheckCase()
#! run fail
#! run fail
# self.sStbStbDdataDtsMtInsertMultiThreadCheckCase()
# self.sStbStbDdataDtsMtInsertMultiThreadCheckCase()
self
.
sStbStbDdataDtsAtInsertMultiThreadCheckCase
()
#
self.sStbStbDdataDtsAtInsertMultiThreadCheckCase()
#
self.sStbDtbDdataDtsInsertMultiThreadCheckCase()
self
.
sStbDtbDdataDtsInsertMultiThreadCheckCase
()
# self.sStbDtbDdataDtsMtInsertMultiThreadCheckCase()
# self.sStbDtbDdataDtsMtInsertMultiThreadCheckCase()
def
run
(
self
):
def
run
(
self
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录