change test dir

This commit is contained in:
yihaoDeng 2023-02-08 20:19:19 +08:00
parent d842dd25b1
commit c7b294d03b
6 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,61 @@
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/exec.sh -n dnode1 -s start
sql connect
print ======== step0
$dbPrefix = ta_3_db
$tbPrefix = ta_3_tb
$mtPrefix = ta_3_mt
$tbNum = 1000
$rowNum = 20
$totalNum = 200
print =============== create database
sql create database $dbPrefix
sql use $dbPrefix
print =============== create super table and register rsma
sql create table if not exists $mtPrefix (ts timestamp, c1 int) tags (t1 int, t2 int, t3 int, t4 int, t5 int)
sql show stables
if $rows != 1 then
return -1
endi
print =============== create child table
$i = 0
while $i < $tbNum
$tb = $tbPrefix . $i
sql create table $tb using $mtPrefix tags($i, $i, $i,$i, $i);
endw
sql show tables
if $rows != $tbNum then
return -1
endi
print =============== insert data into each table
$i = 0
while $i < $tbNum
$tb = $tbPrefix . $i
sql insert into $sb values(now, 10);
endw
sql create index ti2 on $tb(t2)
//sql create index ti2 on $tb(t3)
$i = 0
while $i < $tbNum
sql select * from $mtPrefix where t2=$i;
if $rows > 1 then
return -1
endi
endw
system sh/exec.sh -n dnode1 -s stop -x SIGINT

View File

View File