提交 72d68022 编写于 作者: G Ganlin Zhao

fix test cases

上级 139136bc
......@@ -52,21 +52,21 @@ sql create sma index sma_index_name1 on stb function(max(c1),max(c2),min(c1)) in
print --> show sma
sql show indexes from stb from d1;
if $rows != 1 then
if $rows != 1 then
return -1
endi
if $data[0][0] != sma_index_name1 then
if $data[0][0] != sma_index_name1 then
return -1
endi
if $data[0][1] != d1 then
if $data[0][1] != d1 then
return -1
endi
if $data[0][2] != stb then
if $data[0][2] != stb then
return -1
endi
print --> drop stb
sql drop table stb;
sql drop table stb;
print ========== step4 repeat
......@@ -78,23 +78,23 @@ sql create sma index sma_index_name1 on stb function(max(c1),max(c2),min(c1)) in
print --> show sma
sql show indexes from stb from d1;
if $rows != 1 then
if $rows != 1 then
return -1
endi
if $data[0][0] != sma_index_name1 then
if $data[0][0] != sma_index_name1 then
return -1
endi
if $data[0][1] != d1 then
if $data[0][1] != d1 then
return -1
endi
if $data[0][2] != stb then
if $data[0][2] != stb then
return -1
endi
print --> drop stb
sql drop table stb;
sql drop table stb;
print ========== step5
print ========== step5
sql drop database if exists db;
sql create database db duration 300;
sql use db;
......@@ -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 dnode2 -s stop -x SIGINT
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec.sh -n dnode4 -s stop -x SIGINT
\ No newline at end of file
system sh/exec.sh -n dnode4 -s stop -x SIGINT
......@@ -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 show stables
if $rows != 1 then
if $rows != 1 then
return -1
endi
......@@ -20,7 +20,7 @@ print =============== create child table
sql create table ct1 using stb tags("BeiJing", "ChaoYang");
sql show tables
if $rows != 1 then
if $rows != 1 then
return -1
endi
......@@ -119,7 +119,7 @@ endi
print =============== select * from retention level 0 from file
sql select * from ct1 where ts > now-3d;
print $data00 $data01
print $data00 $data01
print $data10 $data11
print $data20 $data21
if $rows < 1 then
......@@ -132,4 +132,4 @@ if $data01 != 10 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
system sh/exec.sh -n dnode1 -s stop -x SIGINT
......@@ -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 show stables
if $rows != 1 then
if $rows != 1 then
return -1
endi
......@@ -20,7 +20,7 @@ print =============== create child table
sql create table ct1 using stb tags("BeiJing", "ChaoYang");
sql show tables
if $rows != 1 then
if $rows != 1 then
return -1
endi
......@@ -234,4 +234,4 @@ endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
system sh/exec.sh -n dnode1 -s stop -x SIGINT
......@@ -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 show stables
if $rows != 1 then
if $rows != 1 then
return -1
endi
......@@ -20,7 +20,7 @@ print =============== create child table
sql create table ct1 using stb tags(1000)
sql show tables
if $rows != 1 then
if $rows != 1 then
return -1
endi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册