Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
c92db0ae
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看板
提交
c92db0ae
编写于
3月 10, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-3220
上级
521113ec
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
198 addition
and
223 deletion
+198
-223
tests/script/general/db/topic1.sim
tests/script/general/db/topic1.sim
+37
-36
tests/script/general/db/topic2.sim
tests/script/general/db/topic2.sim
+157
-187
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+2
-0
tests/script/jenkins/basic_7.txt
tests/script/jenkins/basic_7.txt
+2
-0
未找到文件。
tests/script/general/db/topic1.sim
浏览文件 @
c92db0ae
...
...
@@ -365,7 +365,7 @@ if $data7_db != 20,20,30 then
return -1
endi
sql_error alter
database
db keep 40
sql_error alter
topic
db keep 40
sql alter database db keep 40
sql show databases
print keep $data7_db
...
...
@@ -596,6 +596,9 @@ endi
print ============== step db1
sql create database d1
sql_error alter database d1 partitions 2
sql_error alter topic d1 partitions 2
sql show topics;
if $rows != 0 then
return -1
...
...
@@ -613,11 +616,11 @@ if $rows != 0 then
endi
sql show databases;
if $rows !=
0
then
if $rows !=
1
then
return -1
endi
sql drop database d
b
sql drop database d
1
sql show topics;
if $rows != 0 then
return -1
...
...
@@ -651,7 +654,7 @@ if $rows != 1 then
return -1
endi
sql drop database d
b
sql drop database d
1
sql show topics;
if $rows != 0 then
return -1
...
...
@@ -685,7 +688,7 @@ if $rows != 1 then
return -1
endi
sql drop database d
b
sql drop database d
1
sql show topics;
if $rows != 0 then
return -1
...
...
@@ -696,23 +699,23 @@ if $rows != 0 then
return -1
endi
print ============== step partitons
sql create
partiton t1 partit
ons 5
print ============== step partit
i
ons
sql create
topic t1 partiti
ons 5
sql_error alter database t1 partitons -1
sql_error alter database t1 partitons 0
sql_error alter database t1 partitons 1
sql_error alter database t1 partitons 2
sql_error alter database t1 partitons 3
sql_error alter database t1 partitons 100
sql_error alter database t1 partitons 1000
sql_error alter database t1 partitons 10000
sql_error alter database t1 partit
i
ons -1
sql_error alter database t1 partit
i
ons 0
sql_error alter database t1 partit
i
ons 1
sql_error alter database t1 partit
i
ons 2
sql_error alter database t1 partit
i
ons 3
sql_error alter database t1 partit
i
ons 100
sql_error alter database t1 partit
i
ons 1000
sql_error alter database t1 partit
i
ons 10000
sql_error alter topic t1 partitons -1
sql_error alter topic t1 partitons 0
sql_error alter database t1 partitons 10000
sql_error alter topic t1 partit
i
ons -1
sql_error alter topic t1 partit
i
ons 0
sql_error alter database t1 partit
i
ons 10000
sql alter topic t1 partitons 1
sql alter topic t1 partit
i
ons 1
sql show topics;
if $rows != 1 then
return -1
...
...
@@ -728,12 +731,12 @@ if $data00 != t1 then
return -1
endi
#tables
if $data02 !=
6
then
if $data02 !=
1
then
return -1
endi
#numofvgroups
sql show t1.vgroups;
if $rows
< 6
then
if $rows
!= 1
then
return -1
endi
sql show t1.stables;
...
...
@@ -741,11 +744,11 @@ if $rows != 1 then
return -1
endi
sql show t1.tables;
if $rows
< 6
then
if $rows
!= 1
then
return -1
endi
sql alter topic t1 partitons 2
sql alter topic t1 partit
i
ons 2
sql show topics;
if $rows != 1 then
return -1
...
...
@@ -761,12 +764,12 @@ if $data00 != t1 then
return -1
endi
#tables
if $data02 !=
6
then
if $data02 !=
2
then
return -1
endi
#numofvgroups
sql show t1.vgroups;
if $rows
< 6
then
if $rows
!= 2
then
return -1
endi
sql show t1.stables;
...
...
@@ -774,11 +777,11 @@ if $rows != 1 then
return -1
endi
sql show t1.tables;
if $rows
< 6
then
if $rows
!= 2
then
return -1
endi
sql alter topic t1 partitons 3
sql alter topic t1 partit
i
ons 3
sql show topics;
if $rows != 1 then
return -1
...
...
@@ -794,12 +797,12 @@ if $data00 != t1 then
return -1
endi
#tables
if $data02 !=
6
then
if $data02 !=
3
then
return -1
endi
#numofvgroups
sql show t1.vgroups;
if $rows
< 6
then
if $rows
!= 3
then
return -1
endi
sql show t1.stables;
...
...
@@ -807,11 +810,11 @@ if $rows != 1 then
return -1
endi
sql show t1.tables;
if $rows
< 6
then
if $rows
!= 3
then
return -1
endi
sql alter topic t1 partit
ons 2
0
sql alter topic t1 partit
ions 1
0
sql show topics;
if $rows != 1 then
return -1
...
...
@@ -827,12 +830,12 @@ if $data00 != t1 then
return -1
endi
#tables
if $data02 !=
6
then
if $data02 !=
10
then
return -1
endi
#numofvgroups
sql show t1.vgroups;
if $rows
< 6
then
if $rows
!= 10
then
return -1
endi
sql show t1.stables;
...
...
@@ -840,10 +843,8 @@ if $rows != 1 then
return -1
endi
sql show t1.tables;
if $rows
< 6
then
if $rows
!= 10
then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
tests/script/general/db/topic2.sim
浏览文件 @
c92db0ae
...
...
@@ -12,63 +12,57 @@ sql show t1.tables
if $rows != 2 then
return -1
endi
if $data00 != p1 then
return -1
endi
if $data10 != p2 then
return -1
endi
sql show t1.vgroups
if $rows != 2 then
return -1
endi
sql insert into t1.p1 values(
now
, '1');
sql insert into t1.p1 values(
now
, '2');
sql insert into t1.p1 values(
now
, '3');
sql insert into t1.p1 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql insert into t1.p1 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p1 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p1 values(
1
, '1');
sql insert into t1.p1 values(
1
, '2');
sql insert into t1.p1 values(
1
, '3');
sql insert into t1.p1 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql insert into t1.p1 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql insert into t1.p1 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql insert into t1.p2 values(
now
, '1');
sql insert into t1.p2 values(
now
, '2');
sql insert into t1.p2 values(
now
, '3');
sql insert into t1.p2 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql insert into t1.p2 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p2 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p2 values(
1
, '1');
sql insert into t1.p2 values(
1
, '2');
sql insert into t1.p2 values(
1
, '3');
sql insert into t1.p2 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql insert into t1.p2 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql insert into t1.p2 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql_error insert into t1.p3 values(
now
, '1');
sql_error insert into t1.p3 values(
now
, '2');
sql_error insert into t1.p3 values(
now
, '3');
sql_error insert into t1.p3 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql_error insert into t1.p3 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p3 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p3 values(
1
, '1');
sql_error insert into t1.p3 values(
1
, '2');
sql_error insert into t1.p3 values(
1
, '3');
sql_error insert into t1.p3 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql_error insert into t1.p3 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql_error insert into t1.p3 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql select * from t1.p1 order by off
de
sc
if $rows !=
21
then
sql select * from t1.p1 order by off
a
sc
if $rows !=
33
then
return -1
endi
if $data0
0
!= 1 then
if $data0
1
!= 1 then
return -1
endi
if $data1
0
!= 2 then
if $data1
1
!= 2 then
return -1
endi
if $data
10
!= 3 then
if $data
21
!= 3 then
return -1
endi
sql select * from t1.p2 order by off
de
sc
if $rows !=
21
then
sql select * from t1.p2 order by off
a
sc
if $rows !=
33
then
return -1
endi
if $data0
0
!= 1 then
if $data0
1
!= 1 then
return -1
endi
if $data1
0
!= 2 then
if $data1
1
!= 2 then
return -1
endi
if $data
10
!= 3 then
if $data
21
!= 3 then
return -1
endi
...
...
@@ -78,111 +72,99 @@ sql show t1.tables
if $rows != 4 then
return -1
endi
if $data00 != p1 then
return -1
endi
if $data10 != p2 then
return -1
endi
if $data10 != p3 then
return -1
endi
if $data10 != p4 then
return -1
endi
sql show t1.vgroups
if $rows != 4 then
return -1
endi
sql insert into t1.p1 values(
now
, '1');
sql insert into t1.p1 values(
now
, '2');
sql insert into t1.p1 values(
now
, '3');
sql insert into t1.p1 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql insert into t1.p1 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p1 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p1 values(
1
, '1');
sql insert into t1.p1 values(
1
, '2');
sql insert into t1.p1 values(
1
, '3');
sql insert into t1.p1 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql insert into t1.p1 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql insert into t1.p1 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql insert into t1.p2 values(
now
, '1');
sql insert into t1.p2 values(
now
, '2');
sql insert into t1.p2 values(
now
, '3');
sql insert into t1.p2 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql insert into t1.p2 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p2 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p2 values(
1
, '1');
sql insert into t1.p2 values(
1
, '2');
sql insert into t1.p2 values(
1
, '3');
sql insert into t1.p2 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql insert into t1.p2 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql insert into t1.p2 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql insert into t1.p3 values(
now
, '1');
sql insert into t1.p3 values(
now
, '2');
sql insert into t1.p3 values(
now
, '3');
sql insert into t1.p3 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql insert into t1.p3 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p3 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p3 values(
1
, '1');
sql insert into t1.p3 values(
1
, '2');
sql insert into t1.p3 values(
1
, '3');
sql insert into t1.p3 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql insert into t1.p3 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql insert into t1.p3 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql insert into t1.p4 values(
now
, '1');
sql insert into t1.p4 values(
now
, '2');
sql insert into t1.p4 values(
now
, '3');
sql insert into t1.p4 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql insert into t1.p4 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p4 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p4 values(
1
, '1');
sql insert into t1.p4 values(
1
, '2');
sql insert into t1.p4 values(
1
, '3');
sql insert into t1.p4 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql insert into t1.p4 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql insert into t1.p4 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql_error insert into t1.p5 values(
now
, '1');
sql_error insert into t1.p5 values(
now
, '2');
sql_error insert into t1.p5 values(
now
, '3');
sql_error insert into t1.p5 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql_error insert into t1.p5 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p5 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p5 values(
1
, '1');
sql_error insert into t1.p5 values(
1
, '2');
sql_error insert into t1.p5 values(
1
, '3');
sql_error insert into t1.p5 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql_error insert into t1.p5 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql_error insert into t1.p5 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql select * from t1.p1 order by off
de
sc
if $rows !=
42
then
sql select * from t1.p1 order by off
a
sc
if $rows !=
66
then
return -1
endi
if $data0
0
!= 1 then
if $data0
1
!= 1 then
return -1
endi
if $data1
0
!= 2 then
if $data1
1
!= 2 then
return -1
endi
if $data
10
!= 3 then
if $data
21
!= 3 then
return -1
endi
sql select * from t1.p2 order by off
de
sc
if $rows !=
42
then
sql select * from t1.p2 order by off
a
sc
if $rows !=
66
then
return -1
endi
if $data0
0
!= 1 then
if $data0
1
!= 1 then
return -1
endi
if $data1
0
!= 2 then
if $data1
1
!= 2 then
return -1
endi
if $data
10
!= 3 then
if $data
21
!= 3 then
return -1
endi
sql select * from t1.p3 order by off
de
sc
if $rows !=
21
then
sql select * from t1.p3 order by off
a
sc
if $rows !=
33
then
return -1
endi
if $data0
0
!= 1 then
if $data0
1
!= 1 then
return -1
endi
if $data1
0
!= 2 then
if $data1
1
!= 2 then
return -1
endi
if $data
10
!= 3 then
if $data
21
!= 3 then
return -1
endi
sql select * from t1.p
3 order by off de
sc
if $rows !=
21
then
sql select * from t1.p
4 order by off a
sc
if $rows !=
33
then
return -1
endi
if $data0
0
!= 1 then
if $data0
1
!= 1 then
return -1
endi
if $data1
0
!= 2 then
if $data1
1
!= 2 then
return -1
endi
if $data
10
!= 3 then
if $data
21
!= 3 then
return -1
endi
...
...
@@ -192,66 +174,63 @@ sql show t1.tables
if $rows != 1 then
return -1
endi
if $data00 != p1 then
return -1
endi
sql show t1.vgroups
if $rows != 1 then
return -1
endi
sql insert into t1.p1 values(
now
, '1');
sql insert into t1.p1 values(
now
, '2');
sql insert into t1.p1 values(
now
, '3');
sql insert into t1.p1 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql insert into t1.p1 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p1 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p1 values(
1
, '1');
sql insert into t1.p1 values(
1
, '2');
sql insert into t1.p1 values(
1
, '3');
sql insert into t1.p1 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql insert into t1.p1 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql insert into t1.p1 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql_error insert into t1.p2 values(
now
, '1');
sql_error insert into t1.p2 values(
now
, '2');
sql_error insert into t1.p2 values(
now
, '3');
sql_error insert into t1.p2 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql_error insert into t1.p2 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p2 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p2 values(
1
, '1');
sql_error insert into t1.p2 values(
1
, '2');
sql_error insert into t1.p2 values(
1
, '3');
sql_error insert into t1.p2 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql_error insert into t1.p2 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql_error insert into t1.p2 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql_error insert into t1.p3 values(
now
, '1');
sql_error insert into t1.p3 values(
now
, '2');
sql_error insert into t1.p3 values(
now
, '3');
sql_error insert into t1.p3 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql_error insert into t1.p3 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p3 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p3 values(
1
, '1');
sql_error insert into t1.p3 values(
1
, '2');
sql_error insert into t1.p3 values(
1
, '3');
sql_error insert into t1.p3 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql_error insert into t1.p3 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql_error insert into t1.p3 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql_error insert into t1.p4 values(
now
, '1');
sql_error insert into t1.p4 values(
now
, '2');
sql_error insert into t1.p4 values(
now
, '3');
sql_error insert into t1.p4 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql_error insert into t1.p4 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p4 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p4 values(
1
, '1');
sql_error insert into t1.p4 values(
1
, '2');
sql_error insert into t1.p4 values(
1
, '3');
sql_error insert into t1.p4 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql_error insert into t1.p4 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql_error insert into t1.p4 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql_error insert into t1.p5 values(
now
, '1');
sql_error insert into t1.p5 values(
now
, '2');
sql_error insert into t1.p5 values(
now
, '3');
sql_error insert into t1.p5 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql_error insert into t1.p5 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p5 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql_error insert into t1.p5 values(
1
, '1');
sql_error insert into t1.p5 values(
1
, '2');
sql_error insert into t1.p5 values(
1
, '3');
sql_error insert into t1.p5 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql_error insert into t1.p5 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql_error insert into t1.p5 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql select * from t1.p1 order by off
de
sc
if $rows !=
63
then
sql select * from t1.p1 order by off
a
sc
if $rows !=
99
then
return -1
endi
if $data0
0
!= 1 then
if $data0
1
!= 1 then
return -1
endi
if $data1
0
!= 2 then
if $data1
1
!= 2 then
return -1
endi
if $data
10
!= 3 then
if $data
21
!= 3 then
return -1
endi
sql_error select * from t1.p2 order by off
de
sc
sql_error select * from t1.p3 order by off
de
sc
sql_error select * from t1.p4 order by off
de
sc
sql_error select * from t1.p2 order by off
a
sc
sql_error select * from t1.p3 order by off
a
sc
sql_error select * from t1.p4 order by off
a
sc
print ==== step4
sql alter topic t1 partitions 3;
...
...
@@ -259,92 +238,83 @@ sql show t1.tables
if $rows != 3 then
return -1
endi
if $data00 != p1 then
return -1
endi
if $data00 != p2 then
return -1
endi
if $data00 != p3 then
return -1
endi
sql show t1.vgroups
if $rows != 3 then
return -1
endi
sql insert into t1.p1 values(
now
, '1');
sql insert into t1.p1 values(
now
, '2');
sql insert into t1.p1 values(
now
, '3');
sql insert into t1.p1 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql insert into t1.p1 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p1 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p1 values(
1
, '1');
sql insert into t1.p1 values(
1
, '2');
sql insert into t1.p1 values(
1
, '3');
sql insert into t1.p1 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql insert into t1.p1 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql insert into t1.p1 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql insert into t1.p2 values(
now
, '1');
sql insert into t1.p2 values(
now
, '2');
sql insert into t1.p2 values(
now
, '3');
sql insert into t1.p2 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql insert into t1.p2 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p2 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p2 values(
1
, '1');
sql insert into t1.p2 values(
1
, '2');
sql insert into t1.p2 values(
1
, '3');
sql insert into t1.p2 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql insert into t1.p2 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql insert into t1.p2 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql insert into t1.p3 values(
now
, '1');
sql insert into t1.p3 values(
now
, '2');
sql insert into t1.p3 values(
now
, '3');
sql insert into t1.p3 values(
now, '4')(now, '5')(now, '6')(now, '7')(now, '8')(now
, '9');
sql insert into t1.p3 values(
now, '14')(now, '15')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p3 values(
now, '24')(now, '25')(now, '16')(now, '17')(now, '18')(now, '19
');
sql insert into t1.p3 values(
1
, '1');
sql insert into t1.p3 values(
1
, '2');
sql insert into t1.p3 values(
1
, '3');
sql insert into t1.p3 values(
1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6
, '9');
sql insert into t1.p3 values(
1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15
');
sql insert into t1.p3 values(
1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33
');
sql
insert into t1.p4 values(now
, '1');
sql
insert into t1.p5 values(now
, '1');
sql
insert into t1.p6 values(now
, '1');
sql_error select * from t1.p4 order by off
de
sc
sql_error select * from t1.p5 order by off
de
sc
sql_error select * from t1.p6 order by off
de
sc
sql
_error insert into t1.p4 values(1
, '1');
sql
_error insert into t1.p5 values(1
, '1');
sql
_error insert into t1.p6 values(1
, '1');
sql_error select * from t1.p4 order by off
a
sc
sql_error select * from t1.p5 order by off
a
sc
sql_error select * from t1.p6 order by off
a
sc
sql select * from t1.p1 order by off
de
sc
if $rows !=
84
then
sql select * from t1.p1 order by off
a
sc
if $rows !=
132
then
return -1
endi
if $data0
0
!= 1 then
if $data0
1
!= 1 then
return -1
endi
if $data1
0
!= 2 then
if $data1
1
!= 2 then
return -1
endi
if $data
10
!= 3 then
if $data
21
!= 3 then
return -1
endi
sql select * from t1.p
1 order by off de
sc
if $rows !=
21
then
sql select * from t1.p
2 order by off a
sc
if $rows !=
33
then
return -1
endi
if $data0
0
!= 1 then
if $data0
1
!= 1 then
return -1
endi
if $data1
0
!= 2 then
if $data1
1
!= 2 then
return -1
endi
if $data
10
!= 3 then
if $data
21
!= 3 then
return -1
endi
sql select * from t1.p
1 order by off de
sc
if $rows !=
21
then
sql select * from t1.p
3 order by off a
sc
if $rows !=
33
then
return -1
endi
if $data0
0
!= 1 then
if $data0
1
!= 1 then
return -1
endi
if $data1
0
!= 2 then
if $data1
1
!= 2 then
return -1
endi
if $data
10
!= 3 then
if $data
21
!= 3 then
return -1
endi
sql select * from t1.ps order by off
de
sc
if $rows != 1
26
then
sql select * from t1.ps order by off
a
sc
if $rows != 1
98
then
return -1
endi
...
...
tests/script/jenkins/basic.txt
浏览文件 @
c92db0ae
...
...
@@ -68,6 +68,8 @@ cd ../../../debug; make
./test.sh -f general/db/repeat.sim
./test.sh -f general/db/tables.sim
./test.sh -f general/db/vnodes.sim
./test.sh -f general/db/topic1.sim
./test.sh -f general/db/topic2.sim
./test.sh -f general/db/nosuchfile.sim
./test.sh -f general/field/2.sim
...
...
tests/script/jenkins/basic_7.txt
浏览文件 @
c92db0ae
...
...
@@ -38,6 +38,8 @@
./test.sh -f general/db/repeat.sim
./test.sh -f general/db/tables.sim
./test.sh -f general/db/vnodes.sim
./test.sh -f general/db/topic1.sim
./test.sh -f general/db/topic2.sim
./test.sh -f general/table/autocreate.sim
./test.sh -f general/table/basic1.sim
./test.sh -f general/table/basic2.sim
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录