test(query): add regress test case.
This commit is contained in:
parent
1741e98a4e
commit
c453151230
|
@ -63,4 +63,38 @@ if $rows != 8198 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
print ===========================> TD-22077 && TD-21877
|
||||||
|
sql drop database if exists $db -x step1
|
||||||
|
sql create database $db vgroups 1;
|
||||||
|
|
||||||
|
sql use $db
|
||||||
|
sql create stable st1 (ts timestamp, c int) tags(a int);
|
||||||
|
sql create table t1 using st1 tags(1);
|
||||||
|
sql create table t2 using st1 tags(2);
|
||||||
|
|
||||||
|
$i = 0
|
||||||
|
$ts = 1674977959000
|
||||||
|
$rowNum = 200
|
||||||
|
|
||||||
|
$x = 0
|
||||||
|
while $x < $rowNum
|
||||||
|
$xs = $x * $delta
|
||||||
|
$ts = $ts0 + $xs
|
||||||
|
sql insert into t1 values ( $ts , $x )
|
||||||
|
sql insert into t2 values ( $ts + 1000a, $x )
|
||||||
|
$x = $x + 1
|
||||||
|
$ts = $ts + 1000
|
||||||
|
endw
|
||||||
|
|
||||||
|
sql flush database $db
|
||||||
|
|
||||||
|
sql insert into t1 values('2018-09-17 09:00:26', 26);
|
||||||
|
sql insert into t2 values('2018-09-17 09:00:25', 25);
|
||||||
|
|
||||||
|
sql insert into t2 values('2018-09-17 09:00:30', 30);
|
||||||
|
sql flush database reg_db0;
|
||||||
|
|
||||||
|
sql delete from st1 where ts<='2018-9-17 09:00:26';
|
||||||
|
sql select * from st1;
|
||||||
|
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
Loading…
Reference in New Issue