Merge branch '3.0' into fix/TD-18617
This commit is contained in:
parent
7f3146203b
commit
167673e509
|
@ -454,4 +454,4 @@ if $rows != 1 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
|
||||||
|
|
|
@ -365,4 +365,4 @@ if $rows != 1 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
|
||||||
|
|
|
@ -508,4 +508,4 @@ if $rows != 1 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
|
||||||
|
|
|
@ -558,4 +558,4 @@ if $data00 != 33 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
|
@ -669,4 +669,4 @@ if $rows != 1 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
|
||||||
|
|
|
@ -79,4 +79,4 @@ print ================ start query ======================
|
||||||
print ================ SQL used to cause taosd or taos shell crash
|
print ================ SQL used to cause taosd or taos shell crash
|
||||||
sql_error select sum(c1) ,count(c1) from ct4 group by c1 having sum(c10) between 0 and 1 ;
|
sql_error select sum(c1) ,count(c1) from ct4 group by c1 having sum(c10) between 0 and 1 ;
|
||||||
|
|
||||||
#system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
#system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
|
@ -25,17 +25,17 @@ $i = 0
|
||||||
while $i < $tbNum
|
while $i < $tbNum
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
sql create table $tb using $mt tags( $i )
|
sql create table $tb using $mt tags( $i )
|
||||||
|
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$cc = $x * 60000
|
$cc = $x * 60000
|
||||||
$ms = 1601481600000 + $cc
|
$ms = 1601481600000 + $cc
|
||||||
sql insert into $tb values ($ms , $x )
|
sql insert into $tb values ($ms , $x )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
sleep 100
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ sql select _rowts, diff(tbcol) from $tb where ts > $ms
|
||||||
print ===> rows: $rows
|
print ===> rows: $rows
|
||||||
print ===> $data00 $data01 $data02 $data03 $data04 $data05
|
print ===> $data00 $data01 $data02 $data03 $data04 $data05
|
||||||
print ===> $data10 $data11 $data12 $data13 $data14 $data15
|
print ===> $data10 $data11 $data12 $data13 $data14 $data15
|
||||||
if $data11 != 1 then
|
if $data11 != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ sql select _rowts, diff(tbcol) from $tb where ts <= $ms
|
||||||
print ===> rows: $rows
|
print ===> rows: $rows
|
||||||
print ===> $data00 $data01 $data02 $data03 $data04 $data05
|
print ===> $data00 $data01 $data02 $data03 $data04 $data05
|
||||||
print ===> $data10 $data11 $data12 $data13 $data14 $data15
|
print ===> $data10 $data11 $data12 $data13 $data14 $data15
|
||||||
if $data11 != 1 then
|
if $data11 != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ sql select _rowts, diff(tbcol) as b from $tb
|
||||||
print ===> rows: $rows
|
print ===> rows: $rows
|
||||||
print ===> $data00 $data01 $data02 $data03 $data04 $data05
|
print ===> $data00 $data01 $data02 $data03 $data04 $data05
|
||||||
print ===> $data10 $data11 $data12 $data13 $data14 $data15
|
print ===> $data10 $data11 $data12 $data13 $data14 $data15
|
||||||
if $data11 != 1 then
|
if $data11 != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
@ -107,4 +107,4 @@ if $rows != 2 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
|
||||||
|
|
|
@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
|
||||||
system sh/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
sql connect
|
sql connect
|
||||||
|
|
||||||
print ======== step1
|
print ======== step1
|
||||||
sql create database db1 vgroups 3;
|
sql create database db1 vgroups 3;
|
||||||
sql use db1;
|
sql use db1;
|
||||||
sql select * from information_schema.ins_databases;
|
sql select * from information_schema.ins_databases;
|
||||||
|
@ -30,7 +30,7 @@ sql insert into tb4 values (now, 4, "Bitmap Heap Scan on tenk1 t1 (cost=5.07..2
|
||||||
#sql insert into tb4 values (now, 4, "Bitmap Heap Scan on tenk1 t1 (cost=5.07..229.20 rows=101 width=244) (actual time=0.080..0.526 rows=100 loops=1)");
|
#sql insert into tb4 values (now, 4, "Bitmap Heap Scan on tenk1 t1 (cost=5.07..229.20 rows=101 width=244) (actual time=0.080..0.526 rows=100 loops=1)");
|
||||||
|
|
||||||
|
|
||||||
print ======== step2
|
print ======== step2
|
||||||
sql explain select * from st1 where -2;
|
sql explain select * from st1 where -2;
|
||||||
sql explain select ts from tb1;
|
sql explain select ts from tb1;
|
||||||
sql explain select * from st1;
|
sql explain select * from st1;
|
||||||
|
@ -41,14 +41,14 @@ sql explain select count(*),sum(f1) from st1;
|
||||||
sql explain select count(*),sum(f1) from st1 group by f1;
|
sql explain select count(*),sum(f1) from st1 group by f1;
|
||||||
#sql explain select count(f1) from tb1 interval(10s, 2s) sliding(3s) fill(prev);
|
#sql explain select count(f1) from tb1 interval(10s, 2s) sliding(3s) fill(prev);
|
||||||
|
|
||||||
print ======== step3
|
print ======== step3
|
||||||
sql explain verbose true select * from st1 where -2;
|
sql explain verbose true select * from st1 where -2;
|
||||||
sql explain verbose true select ts from tb1 where f1 > 0;
|
sql explain verbose true select ts from tb1 where f1 > 0;
|
||||||
sql explain verbose true select * from st1 where f1 > 0 and ts > '2020-10-31 00:00:00' and ts < '2021-10-31 00:00:00';
|
sql explain verbose true select * from st1 where f1 > 0 and ts > '2020-10-31 00:00:00' and ts < '2021-10-31 00:00:00';
|
||||||
sql explain verbose true select count(*) from st1 partition by tbname slimit 1 soffset 2 limit 2 offset 1;
|
sql explain verbose true select count(*) from st1 partition by tbname slimit 1 soffset 2 limit 2 offset 1;
|
||||||
sql explain verbose true select * from information_schema.ins_stables where db_name='db2';
|
sql explain verbose true select * from information_schema.ins_stables where db_name='db2';
|
||||||
|
|
||||||
print ======== step4
|
print ======== step4
|
||||||
sql explain analyze select ts from st1 where -2;
|
sql explain analyze select ts from st1 where -2;
|
||||||
sql explain analyze select ts from tb1;
|
sql explain analyze select ts from tb1;
|
||||||
sql explain analyze select ts from st1;
|
sql explain analyze select ts from st1;
|
||||||
|
@ -59,7 +59,7 @@ sql explain analyze select count(*),sum(f1) from tb1;
|
||||||
sql explain analyze select count(*),sum(f1) from st1;
|
sql explain analyze select count(*),sum(f1) from st1;
|
||||||
sql explain analyze select count(*),sum(f1) from st1 group by f1;
|
sql explain analyze select count(*),sum(f1) from st1 group by f1;
|
||||||
|
|
||||||
print ======== step5
|
print ======== step5
|
||||||
sql explain analyze verbose true select ts from st1 where -2;
|
sql explain analyze verbose true select ts from st1 where -2;
|
||||||
sql explain analyze verbose true select ts from tb1;
|
sql explain analyze verbose true select ts from tb1;
|
||||||
sql explain analyze verbose true select ts from st1;
|
sql explain analyze verbose true select ts from st1;
|
||||||
|
@ -87,12 +87,12 @@ sql explain analyze verbose true select count(f1) from st1 group by tbname;
|
||||||
#sql explain select * from tb1, tb2 where tb1.ts=tb2.ts;
|
#sql explain select * from tb1, tb2 where tb1.ts=tb2.ts;
|
||||||
#sql explain select * from st1, st2 where tb1.ts=tb2.ts;
|
#sql explain select * from st1, st2 where tb1.ts=tb2.ts;
|
||||||
#sql explain analyze verbose true select sum(a+b) from (select _rowts, min(f1) b,count(*) a from st1 where f1 > 0 interval(1a)) where a < 0 interval(1s);
|
#sql explain analyze verbose true select sum(a+b) from (select _rowts, min(f1) b,count(*) a from st1 where f1 > 0 interval(1a)) where a < 0 interval(1s);
|
||||||
#sql explain select min(f1) from st1 interval(1m, 2a) sliding(30s);
|
#sql explain select min(f1) from st1 interval(1m, 2a) sliding(30s);
|
||||||
#sql explain verbose true select count(*),sum(f1) from st1 where f1 > 0 and ts > '2021-10-31 00:00:00' group by f1 having sum(f1) > 0;
|
#sql explain verbose true select count(*),sum(f1) from st1 where f1 > 0 and ts > '2021-10-31 00:00:00' group by f1 having sum(f1) > 0;
|
||||||
#sql explain analyze select min(f1) from st1 interval(3m, 2a) sliding(1m);
|
#sql explain analyze select min(f1) from st1 interval(3m, 2a) sliding(1m);
|
||||||
#sql explain analyze select count(f1) from tb1 interval(10s, 2s) sliding(3s) fill(prev);
|
#sql explain analyze select count(f1) from tb1 interval(10s, 2s) sliding(3s) fill(prev);
|
||||||
#sql explain analyze verbose true select count(*),sum(f1) from st1 where f1 > 0 and ts > '2021-10-31 00:00:00' group by f1 having sum(f1) > 0;
|
#sql explain analyze verbose true select count(*),sum(f1) from st1 where f1 > 0 and ts > '2021-10-31 00:00:00' group by f1 having sum(f1) > 0;
|
||||||
#sql explain analyze verbose true select min(f1) from st1 interval(3m, 2a) sliding(1m);
|
#sql explain analyze verbose true select min(f1) from st1 interval(3m, 2a) sliding(1m);
|
||||||
|
|
||||||
|
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
|
@ -177,4 +177,4 @@ print =============== clear
|
||||||
# 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
|
||||||
|
|
|
@ -33,7 +33,7 @@ print =============== create normal table
|
||||||
sql create table ntb (ts timestamp, c1 int, c2 float, c3 double)
|
sql create table ntb (ts timestamp, c1 int, c2 float, c3 double)
|
||||||
|
|
||||||
sql show tables
|
sql show tables
|
||||||
if $rows != 101 then
|
if $rows != 101 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ if $loop_test == 0 then
|
||||||
print =============== stop and restart taosd
|
print =============== stop and restart taosd
|
||||||
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 dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
|
|
||||||
$loop_cnt = 0
|
$loop_cnt = 0
|
||||||
check_dnode_ready_0:
|
check_dnode_ready_0:
|
||||||
$loop_cnt = $loop_cnt + 1
|
$loop_cnt = $loop_cnt + 1
|
||||||
|
@ -462,7 +462,7 @@ if $loop_test == 0 then
|
||||||
goto check_dnode_ready_0
|
goto check_dnode_ready_0
|
||||||
endi
|
endi
|
||||||
|
|
||||||
$loop_test = 1
|
$loop_test = 1
|
||||||
goto loop_test_pos
|
goto loop_test_pos
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
|
||||||
system sh/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
sql connect
|
sql connect
|
||||||
|
|
||||||
print ======== step1
|
print ======== step1
|
||||||
sql create database db1 vgroups 3;
|
sql create database db1 vgroups 3;
|
||||||
sql use db1;
|
sql use db1;
|
||||||
sql select * from information_schema.ins_databases;
|
sql select * from information_schema.ins_databases;
|
||||||
|
|
|
@ -35,8 +35,8 @@ sql INSERT INTO dev_001 VALUES('2020-05-13 13:00:00.001', 12)
|
||||||
sql INSERT INTO dev_001 VALUES('2020-05-14 13:00:00.001', 13)
|
sql INSERT INTO dev_001 VALUES('2020-05-14 13:00:00.001', 13)
|
||||||
sql INSERT INTO dev_001 VALUES('2020-05-15 14:00:00.000', 14)
|
sql INSERT INTO dev_001 VALUES('2020-05-15 14:00:00.000', 14)
|
||||||
sql INSERT INTO dev_001 VALUES('2020-05-20 10:00:00.000', 15)
|
sql INSERT INTO dev_001 VALUES('2020-05-20 10:00:00.000', 15)
|
||||||
sql INSERT INTO dev_001 VALUES('2020-05-27 10:00:00.001', 16)
|
sql INSERT INTO dev_001 VALUES('2020-05-27 10:00:00.001', 16)
|
||||||
|
|
||||||
sql INSERT INTO dev_002 VALUES('2020-05-13 10:00:00.000', 1)
|
sql INSERT INTO dev_002 VALUES('2020-05-13 10:00:00.000', 1)
|
||||||
sql INSERT INTO dev_002 VALUES('2020-05-13 10:00:00.005', 2)
|
sql INSERT INTO dev_002 VALUES('2020-05-13 10:00:00.005', 2)
|
||||||
sql INSERT INTO dev_002 VALUES('2020-05-13 10:00:00.009', 3)
|
sql INSERT INTO dev_002 VALUES('2020-05-13 10:00:00.009', 3)
|
||||||
|
@ -46,7 +46,7 @@ sql INSERT INTO dev_002 VALUES('2020-05-13 10:00:00.036', 6)
|
||||||
sql INSERT INTO dev_002 VALUES('2020-05-13 10:00:00.51', 7)
|
sql INSERT INTO dev_002 VALUES('2020-05-13 10:00:00.51', 7)
|
||||||
|
|
||||||
# vnode does not return the precision of the table
|
# vnode does not return the precision of the table
|
||||||
print ====> create database d1 precision 'us'
|
print ====> create database d1 precision 'us'
|
||||||
sql create database d1 precision 'us'
|
sql create database d1 precision 'us'
|
||||||
sql use d1
|
sql use d1
|
||||||
sql create table dev_001 (ts timestamp ,i timestamp ,j int)
|
sql create table dev_001 (ts timestamp ,i timestamp ,j int)
|
||||||
|
@ -54,7 +54,7 @@ sql insert into dev_001 values(1623046993681000,now,1)(1623046993681001,now+1s,2
|
||||||
sql create table secondts(ts timestamp,t2 timestamp,i int)
|
sql create table secondts(ts timestamp,t2 timestamp,i int)
|
||||||
sql insert into secondts values(1623046993681000,now,1)(1623046993681001,now+1s,2)(1623046993681002,now+2s,3)(1623046993681004,now+5s,4)
|
sql insert into secondts values(1623046993681000,now,1)(1623046993681001,now+1s,2)(1623046993681002,now+2s,3)(1623046993681004,now+5s,4)
|
||||||
|
|
||||||
$loop_test = 0
|
$loop_test = 0
|
||||||
loop_test_pos:
|
loop_test_pos:
|
||||||
|
|
||||||
sql use $dbNamme
|
sql use $dbNamme
|
||||||
|
@ -299,7 +299,7 @@ if $loop_test == 0 then
|
||||||
print =============== stop and restart taosd
|
print =============== stop and restart taosd
|
||||||
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 dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
|
|
||||||
$loop_cnt = 0
|
$loop_cnt = 0
|
||||||
check_dnode_ready_0:
|
check_dnode_ready_0:
|
||||||
$loop_cnt = $loop_cnt + 1
|
$loop_cnt = $loop_cnt + 1
|
||||||
|
@ -317,7 +317,7 @@ if $loop_test == 0 then
|
||||||
goto check_dnode_ready_0
|
goto check_dnode_ready_0
|
||||||
endi
|
endi
|
||||||
|
|
||||||
$loop_test = 1
|
$loop_test = 1
|
||||||
goto loop_test_pos
|
goto loop_test_pos
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
|
@ -409,4 +409,4 @@ if $rows != 2 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
|
||||||
|
|
|
@ -111,4 +111,4 @@ if $rows != 2 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
|
||||||
|
|
|
@ -9,7 +9,7 @@ system sh/cfg.sh -n dnode1 -c udf -v 1
|
||||||
system sh/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
sql connect
|
sql connect
|
||||||
|
|
||||||
print ======== step1 udf
|
print ======== step1 udf
|
||||||
system sh/compile_udf.sh
|
system sh/compile_udf.sh
|
||||||
sql create database udf vgroups 3;
|
sql create database udf vgroups 3;
|
||||||
sql use udf;
|
sql use udf;
|
||||||
|
|
Loading…
Reference in New Issue