Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
9237014e
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
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看板
提交
9237014e
编写于
7月 15, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: restore some 2.0 cases
上级
a07b770b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
27 addition
and
33 deletion
+27
-33
tests/script/tsim/parser/auto_create_tb.sim
tests/script/tsim/parser/auto_create_tb.sim
+27
-33
未找到文件。
tests/script/tsim/parser/auto_create_tb.sim
浏览文件 @
9237014e
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2
system sh/exec.sh -n dnode1 -s start
sleep 100
sql connect
print ======================== dnode1 start
$dbPrefix = ac_db
...
...
@@ -153,36 +150,37 @@ print $rows $data00 $data10 $data20
if $rows != 3 then
return -1
endi
if $data
00
!= tb1 then
if $data
(tb1)[0]
!= tb1 then
return -1
endi
if $data
10
!= tb2 then
if $data
(tb2)[0]
!= tb2 then
return -1
endi
if $data
20
!= tb3 then
if $data
(tb3)[0]
!= tb3 then
return -1
endi
sql select ts,c1,c2,c3,c4,c5,c7,c8,c9 from $stb
sql select c1,c1,c2,c3,c4,c5,c7,c8,c9 from $stb
print ===> $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07 $data08 $data09
print ===> $data10 $data11 $data12 $data13 $data14 $data15 $data16 $data17 $data18 $data19
print ===> $data20 $data21 $data22 $data23 $data24 $data25 $data26 $data27 $data28 $data29
if $rows != 3 then
return -1
endi
#if $data00 != @18-09-17 09:00:00.000@ then
# return -1
#endi
if $data01 != 1 then
if $data(1)[1] != 1 then
return -1
endi
if $data
08
!= 涛思数据1 then
if $data
(1)[8]
!= 涛思数据1 then
return -1
endi
if $data
14
!= 2.000000000 then
if $data
(2)[4]
!= 2.000000000 then
return -1
endi
if $data
18
!= 涛思数据2 then
if $data
(2)[8]
!= 涛思数据2 then
return -1
endi
if $data
28
!= 涛思数据3 then
if $data
(3)[8]
!= 涛思数据3 then
return -1
endi
...
...
@@ -208,12 +206,7 @@ endi
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 500
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
sql connect
sleep 100
sql use $db
#### auto create multiple tables
sql insert into tb1 using $stb tags(1) values ( $ts0 , 1, 1, 1, 1, 'bin1', 1, 1, 1, '涛思数据1') tb2 using $stb tags(2) values ( $ts0 , 2, 2, 2, 2, 'bin2', 2, 2, 2, '涛思数据2') tb3 using $stb tags(3) values ( $ts0 , 3, 3, 3, 3, 'bin3', 3, 3, 3, '涛思数据3')
...
...
@@ -221,36 +214,37 @@ sql show tables
if $rows != 3 then
return -1
endi
if $data
00
!= tb1 then
if $data
(tb1)[0]
!= tb1 then
return -1
endi
if $data
10
!= tb2 then
if $data
(tb2)[0]
!= tb2 then
return -1
endi
if $data
20
!= tb3 then
if $data
(tb3)[0]
!= tb3 then
return -1
endi
sql select ts,c1,c2,c3,c4,c5,c7,c8,c9 from $stb
sql select c1,c1,c2,c3,c4,c5,c7,c8,c9 from $stb
print ===> $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07 $data08 $data09
print ===> $data10 $data11 $data12 $data13 $data14 $data15 $data16 $data17 $data18 $data19
print ===> $data20 $data21 $data22 $data23 $data24 $data25 $data26 $data27 $data28 $data29
if $rows != 3 then
return -1
endi
#if $data00 != @18-09-17 09:00:00.000@ then
# return -1
#endi
if $data01 != 1 then
if $data(1)[1] != 1 then
return -1
endi
if $data
08
!= 涛思数据1 then
if $data
(1)[8]
!= 涛思数据1 then
return -1
endi
if $data
14
!= 2.000000000 then
if $data
(2)[4]
!= 2.000000000 then
return -1
endi
if $data
18
!= 涛思数据2 then
if $data
(2)[8]
!= 涛思数据2 then
return -1
endi
if $data
28
!= 涛思数据3 then
if $data
(3)[8]
!= 涛思数据3 then
return -1
endi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录