Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
5180384a
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看板
提交
5180384a
编写于
11月 29, 2022
作者:
K
kailixu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: test case adaption to support row/column up to 64k
上级
6c56818b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
9 deletion
+9
-9
tests/pytest/table/boundary.py
tests/pytest/table/boundary.py
+3
-3
tests/pytest/tools/taosdemoAllTest/stmt/insertBinaryLenLarge16374AllcolLar49151-error-stmt.json
...t/insertBinaryLenLarge16374AllcolLar49151-error-stmt.json
+2
-2
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertShell.py
...s/pytest/tools/taosdemoAllTest/taosdemoTestInsertShell.py
+1
-1
tests/system-test/5-taos-tools/taosbenchmark/stmt/insertBinaryLenLarge16374AllcolLar49151-error-stmt.json
...t/insertBinaryLenLarge16374AllcolLar49151-error-stmt.json
+2
-2
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestInsertShell.py
...est/5-taos-tools/taosbenchmark/taosdemoTestInsertShell.py
+1
-1
未找到文件。
tests/pytest/table/boundary.py
浏览文件 @
5180384a
...
@@ -144,9 +144,9 @@ class TDTestCase:
...
@@ -144,9 +144,9 @@ class TDTestCase:
maxRowSize
=
self
.
getLimitFromSourceCode
(
'TSDB_MAX_BYTES_PER_ROW'
)
-
8
maxRowSize
=
self
.
getLimitFromSourceCode
(
'TSDB_MAX_BYTES_PER_ROW'
)
-
8
maxCols
=
self
.
getLimitFromSourceCode
(
'TSDB_MAX_COLUMNS'
)
-
1
maxCols
=
self
.
getLimitFromSourceCode
(
'TSDB_MAX_COLUMNS'
)
-
1
# for binary cols, 2 bytes are used for length
# for binary cols, 2 bytes are used for length
, 4 bytes are used for VarDataOffsetT
colLen
=
(
maxRowSize
-
maxCols
*
2
)
//
maxCols
colLen
=
(
maxRowSize
-
maxCols
*
6
)
//
maxCols
firstColLen
=
maxRowSize
-
2
*
maxCols
-
colLen
*
(
maxCols
-
1
)
firstColLen
=
maxRowSize
-
6
*
maxCols
-
colLen
*
(
maxCols
-
1
)
sql
=
"create table cars (ts timestamp, c0 binary(%d)"
%
firstColLen
sql
=
"create table cars (ts timestamp, c0 binary(%d)"
%
firstColLen
for
i
in
range
(
1
,
maxCols
):
for
i
in
range
(
1
,
maxCols
):
...
...
tests/pytest/tools/taosdemoAllTest/stmt/insertBinaryLenLarge16374AllcolLar49151-error-stmt.json
浏览文件 @
5180384a
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
"sample_format"
:
"csv"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16375
,
"count"
:
1
},{
"type"
:
"INT"
}],
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
65514
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
},
{
{
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
"sample_format"
:
"csv"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16371
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
6
},{
"type"
:
"TINYINT"
}],
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
21831
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
2
},{
"type"
:
"TINYINT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
}]
}]
}]
}]
...
...
tests/pytest/tools/taosdemoAllTest/taosdemoTestInsertShell.py
浏览文件 @
5180384a
...
@@ -215,7 +215,7 @@ class TDTestCase:
...
@@ -215,7 +215,7 @@ class TDTestCase:
# taosdemo error
# taosdemo error
# too max length
# too max length
sql
=
"%s -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(
4096
\)
\
sql
=
"%s -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(
16379
\)
\
-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
,
-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
)
cfgPath
)
tdLog
.
info
(
"%s"
%
sql
)
tdLog
.
info
(
"%s"
%
sql
)
...
...
tests/system-test/5-taos-tools/taosbenchmark/stmt/insertBinaryLenLarge16374AllcolLar49151-error-stmt.json
浏览文件 @
5180384a
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
"sample_format"
:
"csv"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16375
,
"count"
:
1
},{
"type"
:
"INT"
}],
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
65514
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
},
{
{
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
"sample_format"
:
"csv"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
16371
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
6
},{
"type"
:
"TINYINT"
}],
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
21831
,
"count"
:
3
},{
"type"
:
"INT"
,
"count"
:
2
},{
"type"
:
"TINYINT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
}]
}]
}]
}]
...
...
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestInsertShell.py
浏览文件 @
5180384a
...
@@ -203,7 +203,7 @@ class TDTestCase:
...
@@ -203,7 +203,7 @@ class TDTestCase:
# taosdemo error
# taosdemo error
# too max length
# too max length
sql
=
"%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(
4096
\)
\
sql
=
"%staosBenchmark -u root -c %s -h localhost -P 6030 -d db1 -a 1 -l 10 -b float,int,NCHAR\(
16379
\)
\
-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
)
-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
)
tdLog
.
info
(
"%s"
%
sql
)
tdLog
.
info
(
"%s"
%
sql
)
assert
os
.
system
(
"%s"
%
sql
)
!=
0
assert
os
.
system
(
"%s"
%
sql
)
!=
0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录