Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
14b956c4
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看板
提交
14b956c4
编写于
9月 29, 2021
作者:
J
jiajingbin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
save
上级
350590cc
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
12 deletion
+19
-12
tests/pytest/insert/openTsdbTelnetLinesInsert.py
tests/pytest/insert/openTsdbTelnetLinesInsert.py
+19
-12
未找到文件。
tests/pytest/insert/openTsdbTelnetLinesInsert.py
浏览文件 @
14b956c4
...
@@ -502,27 +502,33 @@ class TDTestCase:
...
@@ -502,27 +502,33 @@ class TDTestCase:
chech upper tag
chech upper tag
length of stb_name tb_name <= 192
length of stb_name tb_name <= 192
"""
"""
stb_name_129
=
tdCom
.
getLongName
(
len
=
1
29
,
mode
=
"letters"
)
stb_name_129
=
tdCom
.
getLongName
(
len
=
1
92
,
mode
=
"letters"
)
tb_name_129
=
tdCom
.
getLongName
(
len
=
1
29
,
mode
=
"letters"
)
tb_name_129
=
tdCom
.
getLongName
(
len
=
1
92
,
mode
=
"letters"
)
tdCom
.
cleanTb
()
tdCom
.
cleanTb
()
input_sql
,
stb_name
=
self
.
genFullTypeSql
(
stb_name
=
stb_name_129
,
tb_name
=
tb_name_129
)
input_sql
,
stb_name
=
self
.
genFullTypeSql
(
stb_name
=
stb_name_129
,
tb_name
=
tb_name_129
)
print
(
input_sql
)
self
.
resCmp
(
input_sql
,
stb_name
)
self
.
resCmp
(
input_sql
,
stb_name
)
tdSql
.
query
(
f
'select * from
{
stb_name
}
'
)
tdSql
.
query
(
f
'select * from
{
stb_name
}
'
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkRows
(
1
)
#! bug
for
input_sql
in
[
self
.
genFullTypeSql
(
stb_name
=
tdCom
.
getLongName
(
len
=
193
,
mode
=
"letters"
),
tb_name
=
tdCom
.
getLongName
(
len
=
5
,
mode
=
"letters"
))[
0
],
self
.
genFullTypeSql
(
tb_name
=
tdCom
.
getLongName
(
len
=
193
,
mode
=
"letters"
))[
0
]]:
# for input_json in [self.genFullTypeSql(stb_name=tdCom.getLongName(len=130, mode="letters"), tb_name=tdCom.getLongName(len=5, mode="letters"))[0], self.genFullTypeSql(tb_name=tdCom.getLongName(len=130, mode="letters"))[0]]:
print
(
input_sql
)
# print(input_json)
try
:
# try:
self
.
_conn
.
insert_lines
([
input_sql
],
1
)
# self._conn.insert_lines([input_json], 1)
raise
Exception
(
"should not reach here"
)
# raise Exception("should not reach here")
except
LinesError
as
err
:
# except LinesError as err:
tdSql
.
checkNotEqual
(
err
.
errno
,
0
)
# tdSql.checkNotEqual(err.errno, 0)
input_sql
=
'Abcdffgg 1626006833639000000ns False T1=127i8 id="Abcddd"'
input_sql
=
'Abcdffgg 1626006833639000000ns False T1=127i8 id="Abcddd"'
stb_name
=
"Abcdffgg"
stb_name
=
"Abcdffgg"
self
.
resCmp
(
input_sql
,
stb_name
)
self
.
resCmp
(
input_sql
,
stb_name
)
def
tagNameLengthCheckCase
(
self
):
"""
check tag name limit <= 64
"""
tdCom
.
cleanTb
()
tag_name
=
{
tdCom
.
getLongName
(
64
,
"letters"
)}
input_sql
=
f
'
{
tdCom
.
getLongName
(
7
,
"letters"
)
}
16260068336 39000000ns L"bcdaaa"
{
tdCom
.
getLongName
(
64
,
"letters"
)
}
=f'
,
def
tagValueLengthCheckCase
(
self
):
def
tagValueLengthCheckCase
(
self
):
"""
"""
check full type tag value limit
check full type tag value limit
...
@@ -1474,7 +1480,8 @@ class TDTestCase:
...
@@ -1474,7 +1480,8 @@ class TDTestCase:
try
:
try
:
# self.tagColAddDupIDCheckCase()
# self.tagColAddDupIDCheckCase()
# for i in range(100):
# for i in range(100):
self
.
runAll
()
self
.
tbnameCheckCase
()
# self.runAll()
# self.test()
# self.test()
except
Exception
as
err
:
except
Exception
as
err
:
print
(
''
.
join
(
traceback
.
format_exception
(
None
,
err
,
err
.
__traceback__
)))
print
(
''
.
join
(
traceback
.
format_exception
(
None
,
err
,
err
.
__traceback__
)))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录