Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
72d68022
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1193
Star
22019
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看板
提交
72d68022
编写于
8月 11, 2022
作者:
G
Ganlin Zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix test cases
上级
139136bc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
21 deletion
+21
-21
tests/script/tsim/sma/drop_sma.sim
tests/script/tsim/sma/drop_sma.sim
+12
-12
tests/script/tsim/sma/rsmaCreateInsertQuery.sim
tests/script/tsim/sma/rsmaCreateInsertQuery.sim
+4
-4
tests/script/tsim/sma/rsmaPersistenceRecovery.sim
tests/script/tsim/sma/rsmaPersistenceRecovery.sim
+3
-3
tests/script/tsim/sma/tsmaCreateInsertQuery.sim
tests/script/tsim/sma/tsmaCreateInsertQuery.sim
+2
-2
未找到文件。
tests/script/tsim/sma/drop_sma.sim
浏览文件 @
72d68022
...
@@ -52,21 +52,21 @@ sql create sma index sma_index_name1 on stb function(max(c1),max(c2),min(c1)) in
...
@@ -52,21 +52,21 @@ sql create sma index sma_index_name1 on stb function(max(c1),max(c2),min(c1)) in
print --> show sma
print --> show sma
sql show indexes from stb from d1;
sql show indexes from stb from d1;
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
if $data[0][0] != sma_index_name1 then
if $data[0][0] != sma_index_name1 then
return -1
return -1
endi
endi
if $data[0][1] != d1 then
if $data[0][1] != d1 then
return -1
return -1
endi
endi
if $data[0][2] != stb then
if $data[0][2] != stb then
return -1
return -1
endi
endi
print --> drop stb
print --> drop stb
sql drop table stb;
sql drop table stb;
print ========== step4 repeat
print ========== step4 repeat
...
@@ -78,23 +78,23 @@ sql create sma index sma_index_name1 on stb function(max(c1),max(c2),min(c1)) in
...
@@ -78,23 +78,23 @@ sql create sma index sma_index_name1 on stb function(max(c1),max(c2),min(c1)) in
print --> show sma
print --> show sma
sql show indexes from stb from d1;
sql show indexes from stb from d1;
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
if $data[0][0] != sma_index_name1 then
if $data[0][0] != sma_index_name1 then
return -1
return -1
endi
endi
if $data[0][1] != d1 then
if $data[0][1] != d1 then
return -1
return -1
endi
endi
if $data[0][2] != stb then
if $data[0][2] != stb then
return -1
return -1
endi
endi
print --> drop stb
print --> drop stb
sql drop table stb;
sql drop table stb;
print ========== step5
print ========== step5
sql drop database if exists db;
sql drop database if exists db;
sql create database db duration 300;
sql create database db duration 300;
sql use db;
sql use db;
...
@@ -149,4 +149,4 @@ sql DROP INDEX sma_index_3 ;
...
@@ -149,4 +149,4 @@ sql DROP INDEX sma_index_3 ;
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec.sh -n dnode4 -s stop -x SIGINT
system sh/exec.sh -n dnode4 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/sma/rsmaCreateInsertQuery.sim
浏览文件 @
72d68022
...
@@ -12,7 +12,7 @@ print =============== create super table and register rsma
...
@@ -12,7 +12,7 @@ print =============== create super table and register rsma
sql create table if not exists stb (ts timestamp, c1 int) tags (city binary(20),district binary(20)) rollup(min);
sql create table if not exists stb (ts timestamp, c1 int) tags (city binary(20),district binary(20)) rollup(min);
sql show stables
sql show stables
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
...
@@ -20,7 +20,7 @@ print =============== create child table
...
@@ -20,7 +20,7 @@ print =============== create child table
sql create table ct1 using stb tags("BeiJing", "ChaoYang");
sql create table ct1 using stb tags("BeiJing", "ChaoYang");
sql show tables
sql show tables
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
...
@@ -119,7 +119,7 @@ endi
...
@@ -119,7 +119,7 @@ endi
print =============== select * from retention level 0 from file
print =============== select * from retention level 0 from file
sql select * from ct1 where ts > now-3d;
sql select * from ct1 where ts > now-3d;
print $data00 $data01
print $data00 $data01
print $data10 $data11
print $data10 $data11
print $data20 $data21
print $data20 $data21
if $rows < 1 then
if $rows < 1 then
...
@@ -132,4 +132,4 @@ if $data01 != 10 then
...
@@ -132,4 +132,4 @@ if $data01 != 10 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/sma/rsmaPersistenceRecovery.sim
浏览文件 @
72d68022
...
@@ -12,7 +12,7 @@ print =============== create super table and register rsma
...
@@ -12,7 +12,7 @@ print =============== create super table and register rsma
sql create table if not exists stb (ts timestamp, c1 int, c2 float) tags (city binary(20),district binary(20)) rollup(max) max_delay 5s,5s watermark 2s,3s;
sql create table if not exists stb (ts timestamp, c1 int, c2 float) tags (city binary(20),district binary(20)) rollup(max) max_delay 5s,5s watermark 2s,3s;
sql show stables
sql show stables
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
...
@@ -20,7 +20,7 @@ print =============== create child table
...
@@ -20,7 +20,7 @@ print =============== create child table
sql create table ct1 using stb tags("BeiJing", "ChaoYang");
sql create table ct1 using stb tags("BeiJing", "ChaoYang");
sql show tables
sql show tables
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
...
@@ -234,4 +234,4 @@ endi
...
@@ -234,4 +234,4 @@ endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/sma/tsmaCreateInsertQuery.sim
浏览文件 @
72d68022
...
@@ -12,7 +12,7 @@ print =============== create super table, include column type for count/sum/min/
...
@@ -12,7 +12,7 @@ print =============== create super table, include column type for count/sum/min/
sql create table if not exists stb (ts timestamp, c1 int, c2 float, c3 double) tags (t1 int unsigned)
sql create table if not exists stb (ts timestamp, c1 int, c2 float, c3 double) tags (t1 int unsigned)
sql show stables
sql show stables
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
...
@@ -20,7 +20,7 @@ print =============== create child table
...
@@ -20,7 +20,7 @@ print =============== create child table
sql create table ct1 using stb tags(1000)
sql create table ct1 using stb tags(1000)
sql show tables
sql show tables
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录