Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
1d014841
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看板
提交
1d014841
编写于
5月 17, 2023
作者:
“
“happyguoxy”
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: rowlength64k
上级
0099e1d9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
38 addition
and
8 deletion
+38
-8
tests/system-test/1-insert/rowlength64k.py
tests/system-test/1-insert/rowlength64k.py
+38
-8
未找到文件。
tests/system-test/1-insert/rowlength64k.py
浏览文件 @
1d014841
...
@@ -63,10 +63,7 @@ class TDTestCase:
...
@@ -63,10 +63,7 @@ class TDTestCase:
stable_sql
=
"select * from db.%s where loc match '[a-z]'"
%
stable_name
stable_sql
=
"select * from db.%s where loc match '[a-z]'"
%
stable_name
tdSql
.
query
(
stable_sql
)
tdSql
.
query
(
stable_sql
)
def
run
(
self
):
def
run_8
(
self
):
tdSql
.
prepare
()
startTime_all
=
time
.
time
()
print
(
"==============step8,stable table , mix data type=============="
)
print
(
"==============step8,stable table , mix data type=============="
)
sql
=
"create stable db.stable_16(ts timestamp, "
sql
=
"create stable db.stable_16(ts timestamp, "
...
@@ -183,6 +180,8 @@ class TDTestCase:
...
@@ -183,6 +180,8 @@ class TDTestCase:
self
.
ins_query
()
self
.
ins_query
()
def
run_9
(
self
):
print
(
"==============step9,stable table , mix data type=============="
)
print
(
"==============step9,stable table , mix data type=============="
)
sql
=
"create stable db.stable_26(ts timestamp, "
sql
=
"create stable db.stable_26(ts timestamp, "
sql
+=
"col4090 int ,"
sql
+=
"col4090 int ,"
...
@@ -297,6 +296,9 @@ class TDTestCase:
...
@@ -297,6 +296,9 @@ class TDTestCase:
tdSql
.
error
(
sql
)
tdSql
.
error
(
sql
)
self
.
ins_query
()
self
.
ins_query
()
def
run_1
(
self
):
print
(
"==============step1, regular table, 1 ts + 4094 cols + 1 binary=============="
)
print
(
"==============step1, regular table, 1 ts + 4094 cols + 1 binary=============="
)
startTime
=
time
.
time
()
startTime
=
time
.
time
()
...
@@ -359,7 +361,8 @@ class TDTestCase:
...
@@ -359,7 +361,8 @@ class TDTestCase:
tdSql
.
checkCols
(
4096
)
tdSql
.
checkCols
(
4096
)
self
.
ins_query
()
self
.
ins_query
()
def
run_2
(
self
):
print
(
"==============step2,regular table error col or value=============="
)
print
(
"==============step2,regular table error col or value=============="
)
tdLog
.
info
(
'test regular table exceeds row num'
)
tdLog
.
info
(
'test regular table exceeds row num'
)
...
@@ -394,6 +397,9 @@ class TDTestCase:
...
@@ -394,6 +397,9 @@ class TDTestCase:
tdSql
.
error
(
sql
)
tdSql
.
error
(
sql
)
self
.
ins_query
()
self
.
ins_query
()
def
run_3
(
self
):
print
(
"==============step3,regular table , mix data type=============="
)
print
(
"==============step3,regular table , mix data type=============="
)
startTime
=
time
.
time
()
startTime
=
time
.
time
()
...
@@ -639,8 +645,9 @@ class TDTestCase:
...
@@ -639,8 +645,9 @@ class TDTestCase:
tdSql
.
error
(
sql
)
tdSql
.
error
(
sql
)
self
.
ins_query
()
self
.
ins_query
()
def
run_4
(
self
):
print
(
"==============step4, super table , 1 ts + 4090 cols + 4 tags =============="
)
print
(
"==============step4, super table , 1 ts + 4090 cols + 4 tags =============="
)
startTime
=
time
.
time
()
startTime
=
time
.
time
()
sql
=
"create stable db.stable_1(ts timestamp, "
sql
=
"create stable db.stable_1(ts timestamp, "
...
@@ -727,7 +734,9 @@ class TDTestCase:
...
@@ -727,7 +734,9 @@ class TDTestCase:
tdSql
.
checkCols
(
4092
)
tdSql
.
checkCols
(
4092
)
self
.
ins_query
()
self
.
ins_query
()
def
run_5
(
self
):
print
(
"==============step5,stable table , mix data type=============="
)
print
(
"==============step5,stable table , mix data type=============="
)
sql
=
"create stable db.stable_3(ts timestamp, "
sql
=
"create stable db.stable_3(ts timestamp, "
for
i
in
range
(
500
):
for
i
in
range
(
500
):
...
@@ -950,6 +959,9 @@ class TDTestCase:
...
@@ -950,6 +959,9 @@ class TDTestCase:
self
.
ins_query
()
self
.
ins_query
()
def
run_6
(
self
):
print
(
"==============step6,stable table , mix data type=============="
)
print
(
"==============step6,stable table , mix data type=============="
)
sql
=
"create stable db.stable_6(ts timestamp, "
sql
=
"create stable db.stable_6(ts timestamp, "
for
i
in
range
(
500
):
for
i
in
range
(
500
):
...
@@ -1208,6 +1220,9 @@ class TDTestCase:
...
@@ -1208,6 +1220,9 @@ class TDTestCase:
sql
+=
"col4091 binary(341))"
sql
+=
"col4091 binary(341))"
sql
+=
" tags (loc binary(16371),tag_1 int,tag_2 int,tag_3 int) "
sql
+=
" tags (loc binary(16371),tag_1 int,tag_2 int,tag_3 int) "
tdSql
.
error
(
sql
)
tdSql
.
error
(
sql
)
def
run_7
(
self
):
print
(
"==============step7, super table error col =============="
)
print
(
"==============step7, super table error col =============="
)
tdLog
.
info
(
'test exceeds row num'
)
tdLog
.
info
(
'test exceeds row num'
)
...
@@ -1248,6 +1263,21 @@ class TDTestCase:
...
@@ -1248,6 +1263,21 @@ class TDTestCase:
self
.
ins_query
()
self
.
ins_query
()
def
run
(
self
):
tdSql
.
prepare
()
startTime_all
=
time
.
time
()
self
.
run_8
()
self
.
run_9
()
self
.
run_1
()
self
.
run_2
()
# self.run_3()
# self.run_4()
# self.run_5()
# self.run_6()
# self.run_7()
endTime_all
=
time
.
time
()
endTime_all
=
time
.
time
()
print
(
"total time %ds"
%
(
endTime_all
-
startTime_all
))
print
(
"total time %ds"
%
(
endTime_all
-
startTime_all
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录