test: restore some 2.0 case
This commit is contained in:
parent
2f7d682807
commit
26c5ac3e84
|
@ -1,11 +0,0 @@
|
|||
run general/vector/metrics_field.sim
|
||||
run general/vector/metrics_mix.sim
|
||||
run general/vector/metrics_query.sim
|
||||
run general/vector/metrics_tag.sim
|
||||
run general/vector/metrics_time.sim
|
||||
run general/vector/multi.sim
|
||||
run general/vector/single.sim
|
||||
run general/vector/table_field.sim
|
||||
run general/vector/table_mix.sim
|
||||
run general/vector/table_query.sim
|
||||
run general/vector/table_time.sim
|
|
@ -262,4 +262,17 @@
|
|||
./test.sh -f tsim/field/tinyint.sim
|
||||
./test.sh -f tsim/field/unsigined_bigint.sim
|
||||
|
||||
# ---- vector
|
||||
./test.sh -f tsim/vector/metrics_field.sim
|
||||
./test.sh -f tsim/vector/metrics_mix.sim
|
||||
./test.sh -f tsim/vector/metrics_query.sim
|
||||
./test.sh -f tsim/vector/metrics_tag.sim
|
||||
./test.sh -f tsim/vector/metrics_time.sim
|
||||
./test.sh -f tsim/vector/multi.sim
|
||||
./test.sh -f tsim/vector/single.sim
|
||||
./test.sh -f tsim/vector/table_field.sim
|
||||
./test.sh -f tsim/vector/table_mix.sim
|
||||
./test.sh -f tsim/vector/table_query.sim
|
||||
./test.sh -f tsim/vector/table_time.sim
|
||||
|
||||
#======================b1-end===============
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
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/exec.sh -n dnode1 -s start
|
||||
|
||||
sleep 2000
|
||||
sql connect
|
||||
|
||||
$dbPrefix = m_mf_db
|
||||
|
@ -99,17 +95,9 @@ if $data00 != 0.000000000 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql select g - f from $mt where a = 5 -x step21
|
||||
return -1
|
||||
step21:
|
||||
|
||||
sql select h - f from $mt where a = 5 -x step22
|
||||
return -1
|
||||
step22:
|
||||
|
||||
sql select ts - f from $mt where a = 5 -x step23
|
||||
return -1
|
||||
step23:
|
||||
sql select g - f from $mt where a = 5
|
||||
sql select h - f from $mt where a = 5
|
||||
sql select ts - f from $mt where a = 5
|
||||
|
||||
sql select a - e from $mt where a = 5
|
||||
print ===> $data00
|
||||
|
@ -616,7 +604,7 @@ step63:
|
|||
print =============== clear
|
||||
sql drop database $db
|
||||
sql show databases
|
||||
if $rows != 0 then
|
||||
if $rows != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
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/exec.sh -n dnode1 -s start
|
||||
|
||||
sleep 2000
|
||||
sql connect
|
||||
|
||||
$dbPrefix = m_mx_db
|
||||
|
@ -99,17 +95,11 @@ if $data00 != 0.000000000 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql select g - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m -x step21
|
||||
return -1
|
||||
step21:
|
||||
sql select g - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select h - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m -x step22
|
||||
return -1
|
||||
step22:
|
||||
sql select h - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select ts - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m -x step23
|
||||
return -1
|
||||
step23:
|
||||
sql select ts - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select a - e from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m
|
||||
print ===> $data00
|
||||
|
@ -616,7 +606,7 @@ step63:
|
|||
print =============== clear
|
||||
sql drop database $db
|
||||
sql show databases
|
||||
if $rows != 0 then
|
||||
if $rows != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
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/exec.sh -n dnode1 -s start
|
||||
|
||||
sleep 2000
|
||||
sql connect
|
||||
|
||||
$dbPrefix = m_mq_db
|
||||
|
@ -95,17 +91,9 @@ if $data00 != 0.000000000 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql select g - f from $mt -x step21
|
||||
return -1
|
||||
step21:
|
||||
|
||||
sql select h - f from $mt -x step22
|
||||
return -1
|
||||
step22:
|
||||
|
||||
sql select ts - f from $mt -x step23
|
||||
return -1
|
||||
step23:
|
||||
sql select g - f from $mt
|
||||
sql select h - f from $mt
|
||||
sql select ts - f from $mt
|
||||
|
||||
sql select a - e from $mt
|
||||
print ===> $data00
|
||||
|
@ -612,7 +600,7 @@ step63:
|
|||
print =============== clear
|
||||
sql drop database $db
|
||||
sql show databases
|
||||
if $rows != 0 then
|
||||
if $rows != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
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/exec.sh -n dnode1 -s start
|
||||
|
||||
sleep 2000
|
||||
sql connect
|
||||
|
||||
$dbPrefix = m_mtg_db
|
||||
|
@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql select g - f from $mt where tgcol = 5 -x step21
|
||||
return -1
|
||||
step21:
|
||||
sql select g - f from $mt where tgcol = 5
|
||||
|
||||
sql select h - f from $mt where tgcol = 5 -x step22
|
||||
return -1
|
||||
step22:
|
||||
sql select h - f from $mt where tgcol = 5
|
||||
|
||||
sql select ts - f from $mt where tgcol = 5 -x step23
|
||||
return -1
|
||||
step23:
|
||||
sql select ts - f from $mt where tgcol = 5
|
||||
|
||||
sql select a - e from $mt where tgcol = 5
|
||||
print ===> $data00
|
||||
|
@ -612,7 +602,7 @@ step63:
|
|||
print =============== clear
|
||||
sql drop database $db
|
||||
sql show databases
|
||||
if $rows != 0 then
|
||||
if $rows != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
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/exec.sh -n dnode1 -s start
|
||||
|
||||
sleep 2000
|
||||
sql connect
|
||||
|
||||
$dbPrefix = m_mt_db
|
||||
|
@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql select g - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m -x step21
|
||||
return -1
|
||||
step21:
|
||||
sql select g - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select h - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m -x step22
|
||||
return -1
|
||||
step22:
|
||||
sql select h - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select ts - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m -x step23
|
||||
return -1
|
||||
step23:
|
||||
sql select ts - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select a - e from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m
|
||||
print ===> $data00
|
||||
|
@ -612,7 +602,7 @@ step63:
|
|||
print =============== clear
|
||||
sql drop database $db
|
||||
sql show databases
|
||||
if $rows != 0 then
|
||||
if $rows != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
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/exec.sh -n dnode1 -s start
|
||||
|
||||
sleep 2000
|
||||
sql connect
|
||||
|
||||
$dbPrefix = m_mu_db
|
||||
|
@ -71,9 +67,7 @@ sql select a + a from $tb where ts > now + 4m order by ts desc
|
|||
|
||||
sql select a + c from $tb where ts < now + 4m order by ts asc
|
||||
|
||||
sql select a + f from $tb where ts > now + 4m order by ts asc -x step24
|
||||
return -1
|
||||
step24:
|
||||
sql select a + f from $tb where ts > now + 4m order by ts asc
|
||||
|
||||
print =============== step3
|
||||
$i = 1
|
||||
|
@ -150,17 +144,11 @@ endi
|
|||
print =============== step6
|
||||
$i = 1
|
||||
$tb = $tbPrefix . $i
|
||||
sql select a + ts from $tb -x step61
|
||||
return -1
|
||||
step61:
|
||||
sql select a + ts from $tb
|
||||
|
||||
sql select a + f from $tb -x step62
|
||||
return -1
|
||||
step62:
|
||||
sql select a + f from $tb
|
||||
|
||||
sql select a + g from $tb -x step63
|
||||
return -1
|
||||
step63:
|
||||
sql select a + g from $tb
|
||||
|
||||
print =============== step7
|
||||
$i = 1
|
||||
|
@ -202,14 +190,12 @@ sql select a + a from $tb where e = 2 and ts > now + 4m order by ts desc
|
|||
|
||||
sql select a + c from $tb where f = 2 and ts < now + 4m order by ts asc
|
||||
|
||||
sql select a + f from $tb where g = 2 and ts > now + 4m order by ts asc -x step74
|
||||
return -1
|
||||
step74:
|
||||
sql select a + f from $tb where g = 2 and ts > now + 4m order by ts asc
|
||||
|
||||
print =============== clear
|
||||
sql drop database $db
|
||||
sql show databases
|
||||
if $rows != 0 then
|
||||
if $rows != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
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/exec.sh -n dnode1 -s start
|
||||
|
||||
sleep 2000
|
||||
sql connect
|
||||
|
||||
$dbPrefix = m_si_db
|
||||
|
@ -150,9 +146,7 @@ $i = 11
|
|||
$tb = $tbPrefix . $i
|
||||
sql create table $tb (ts timestamp, tbcol bool)
|
||||
sql insert into $tb values(now, 0)
|
||||
sql select tbcol + 2 from $tb -x step6
|
||||
return -1
|
||||
step6:
|
||||
sql select tbcol + 2 from $tb
|
||||
|
||||
print =============== step7
|
||||
$i = $i + 1
|
||||
|
@ -289,14 +283,12 @@ $i = $i + 1
|
|||
$tb = $tbPrefix . $i
|
||||
sql create table $tb (ts timestamp, tbcol binary(100))
|
||||
sql insert into $tb values(now, '0');
|
||||
sql select tbcol + 2 from $tb -x step12
|
||||
return -1
|
||||
step12:
|
||||
sql select tbcol + 2 from $tb
|
||||
|
||||
print =============== clear
|
||||
sql drop database $db
|
||||
sql show databases
|
||||
if $rows != 0 then
|
||||
if $rows != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
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/exec.sh -n dnode1 -s start
|
||||
|
||||
sleep 2000
|
||||
sql connect
|
||||
|
||||
$dbPrefix = m_tf_db
|
||||
|
@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql select g - f from $tb where a = 5 -x step21
|
||||
return -1
|
||||
step21:
|
||||
sql select g - f from $tb where a = 5
|
||||
|
||||
sql select h - f from $tb where a = 5 -x step22
|
||||
return -1
|
||||
step22:
|
||||
sql select h - f from $tb where a = 5
|
||||
|
||||
sql select ts - f from $tb where a = 5 -x step23
|
||||
return -1
|
||||
step23:
|
||||
sql select ts - f from $tb where a = 5
|
||||
|
||||
sql select a - e from $tb where a = 5
|
||||
print ===> $data00
|
||||
|
@ -612,7 +602,7 @@ step63:
|
|||
print =============== clear
|
||||
sql drop database $db
|
||||
sql show databases
|
||||
if $rows != 0 then
|
||||
if $rows != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
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/exec.sh -n dnode1 -s start
|
||||
|
||||
sleep 2000
|
||||
sql connect
|
||||
|
||||
$dbPrefix = m_tm_db
|
||||
|
@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql select g - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m -x step21
|
||||
return -1
|
||||
step21:
|
||||
sql select g - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select h - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m -x step22
|
||||
return -1
|
||||
step22:
|
||||
sql select h - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select ts - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m -x step23
|
||||
return -1
|
||||
step23:
|
||||
sql select ts - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select a - e from $tb where a = 5 and ts > now + 4m and ts < now + 6m
|
||||
print ===> $data00
|
||||
|
@ -612,7 +602,7 @@ step63:
|
|||
print =============== clear
|
||||
sql drop database $db
|
||||
sql show databases
|
||||
if $rows != 0 then
|
||||
if $rows != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
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/exec.sh -n dnode1 -s start
|
||||
|
||||
sleep 2000
|
||||
sql connect
|
||||
|
||||
$dbPrefix = m_tq_db
|
||||
|
@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql select g - f from $tb -x step21
|
||||
return -1
|
||||
step21:
|
||||
sql select g - f from $tb
|
||||
|
||||
sql select h - f from $tb -x step22
|
||||
return -1
|
||||
step22:
|
||||
sql select h - f from $tb
|
||||
|
||||
sql select ts - f from $tb -x step23
|
||||
return -1
|
||||
step23:
|
||||
sql select ts - f from $tb
|
||||
|
||||
sql select a - e from $tb
|
||||
print ===> $data00
|
||||
|
@ -612,7 +602,7 @@ step63:
|
|||
print =============== clear
|
||||
sql drop database $db
|
||||
sql show databases
|
||||
if $rows != 0 then
|
||||
if $rows != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
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/exec.sh -n dnode1 -s start
|
||||
|
||||
sleep 2000
|
||||
sql connect
|
||||
|
||||
$dbPrefix = m_tt_db
|
||||
|
@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql select g - f from $tb where ts > now + 4m and ts < now + 6m -x step21
|
||||
return -1
|
||||
step21:
|
||||
sql select g - f from $tb where ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select h - f from $tb where ts > now + 4m and ts < now + 6m -x step22
|
||||
return -1
|
||||
step22:
|
||||
sql select h - f from $tb where ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select ts - f from $tb where ts > now + 4m and ts < now + 6m -x step23
|
||||
return -1
|
||||
step23:
|
||||
sql select ts - f from $tb where ts > now + 4m and ts < now + 6m
|
||||
|
||||
sql select a - e from $tb where ts > now + 4m and ts < now + 6m
|
||||
print ===> $data00
|
||||
|
@ -612,7 +602,7 @@ step63:
|
|||
print =============== clear
|
||||
sql drop database $db
|
||||
sql show databases
|
||||
if $rows != 0 then
|
||||
if $rows != 2 then
|
||||
return -1
|
||||
endi
|
||||
|
Loading…
Reference in New Issue