mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* restore .gitmodules
* Revert "[TD-13408]<test>: move tests directory out"
This reverts commit 7db7bd9337.
* revert to make tests back
* immigrate file change in stand-alone repo to TDengine
* remove tests repository checkout
Co-authored-by: tangfangzhi <fztang@taosdata.com>
366 lines
7.9 KiB
Text
366 lines
7.9 KiB
Text
sleep 100
|
|
sql connect
|
|
sql use db
|
|
|
|
print execute sql select acos(stb1.c4),acos(stba.c5) from stb1,stba where stb1.t1=stba.t1 and stb1.ts=stba.ts;
|
|
sql select acos(stb1.c4),acos(stba.c5) from stb1,stba where stb1.t1=stba.t1 and stb1.ts=stba.ts;
|
|
if $data00 != @0.000000000@ then
|
|
return -1
|
|
endi
|
|
if $data01 != @0.000000000@ then
|
|
return -1
|
|
endi
|
|
if $data10 != @NULL@ then
|
|
return -1
|
|
endi
|
|
if $data11 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data20 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data21 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data30 != @NULL@ then
|
|
return -1
|
|
endi
|
|
if $data31 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data40 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data41 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data50 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data51 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data60 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data61 != @nan@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(c4) as a from stb1 union all select acos(c5) as a from stba;
|
|
sql select acos(c4) as a from stb1 union all select acos(c5) as a from stba;
|
|
if $data00 != @0.000000000@ then
|
|
return -1
|
|
endi
|
|
if $data10 != @NULL@ then
|
|
return -1
|
|
endi
|
|
if $data20 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data30 != @NULL@ then
|
|
return -1
|
|
endi
|
|
if $data40 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data50 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data60 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data70 != @0.000000000@ then
|
|
return -1
|
|
endi
|
|
if $data80 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data90 != @nan@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(c2) from stba;
|
|
sql select acos(c2) from stba;
|
|
if $data00 != @0.000000000@ then
|
|
return -1
|
|
endi
|
|
if $data10 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data20 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data30 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data40 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data50 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data60 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data70 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data80 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data90 != @1.570796327@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(min(c2)) from tba1;
|
|
sql select acos(min(c2)) from tba1;
|
|
if $data00 != @1.570796327@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(max(c2)) from tba1;
|
|
sql select acos(max(c2)) from tba1;
|
|
if $data00 != @nan@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(count(c2)) from tba1;
|
|
sql select acos(count(c2)) from tba1;
|
|
if $data00 != @nan@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(sum(c2)) from tba1;
|
|
sql select acos(sum(c2)) from tba1;
|
|
if $data00 != @nan@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(avg(c2)) from tba1;
|
|
sql select acos(avg(c2)) from tba1;
|
|
if $data00 != @nan@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(percentile(c2, 10)) from tba1;
|
|
sql select acos(percentile(c2, 10)) from tba1;
|
|
if $data00 != @0.451026812@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(apercentile(c2, 10)) from tba1;
|
|
sql select acos(apercentile(c2, 10)) from tba1;
|
|
if $data00 != @1.570796327@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(stddev(c2)) from tba1;
|
|
sql select acos(stddev(c2)) from tba1;
|
|
if $data00 != @nan@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(spread(c2)) from tba1;
|
|
sql select acos(spread(c2)) from tba1;
|
|
if $data00 != @nan@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(twa(c2)) from tba1;
|
|
sql select acos(twa(c2)) from tba1;
|
|
if $data00 != @nan@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(leastsquares(c2, 1, 1)) from tba1;
|
|
sql_error select acos(leastsquares(c2, 1, 1)) from tba1;
|
|
print execute sql select acos(interp(c2)) from tba1 every(1s)
|
|
sql select acos(interp(c2)) from tba1 every(1s)
|
|
if $data00 != @21-11-11 09:00:00.000@ then
|
|
return -1
|
|
endi
|
|
if $data01 != @0.000000000@ then
|
|
return -1
|
|
endi
|
|
if $data10 != @21-11-11 09:00:01.000@ then
|
|
return -1
|
|
endi
|
|
if $data11 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data20 != @21-11-11 09:00:02.000@ then
|
|
return -1
|
|
endi
|
|
if $data21 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data30 != @21-11-11 09:00:03.000@ then
|
|
return -1
|
|
endi
|
|
if $data31 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data40 != @21-11-11 09:00:04.000@ then
|
|
return -1
|
|
endi
|
|
if $data41 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data50 != @21-11-11 09:00:05.000@ then
|
|
return -1
|
|
endi
|
|
if $data51 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data60 != @21-11-11 09:00:06.000@ then
|
|
return -1
|
|
endi
|
|
if $data61 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data70 != @21-11-11 09:00:07.000@ then
|
|
return -1
|
|
endi
|
|
if $data71 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data80 != @21-11-11 09:00:08.000@ then
|
|
return -1
|
|
endi
|
|
if $data81 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data90 != @21-11-11 09:00:09.000@ then
|
|
return -1
|
|
endi
|
|
if $data91 != @1.570796327@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(interp(c2)) from stba every(1s) group by tbname;
|
|
sql select acos(interp(c2)) from stba every(1s) group by tbname;
|
|
if $data00 != @21-11-11 09:00:00.000@ then
|
|
return -1
|
|
endi
|
|
if $data01 != @0.000000000@ then
|
|
return -1
|
|
endi
|
|
if $data02 != @tba1@ then
|
|
return -1
|
|
endi
|
|
if $data10 != @21-11-11 09:00:01.000@ then
|
|
return -1
|
|
endi
|
|
if $data11 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data12 != @tba1@ then
|
|
return -1
|
|
endi
|
|
if $data20 != @21-11-11 09:00:02.000@ then
|
|
return -1
|
|
endi
|
|
if $data21 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data22 != @tba1@ then
|
|
return -1
|
|
endi
|
|
if $data30 != @21-11-11 09:00:03.000@ then
|
|
return -1
|
|
endi
|
|
if $data31 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data32 != @tba1@ then
|
|
return -1
|
|
endi
|
|
if $data40 != @21-11-11 09:00:04.000@ then
|
|
return -1
|
|
endi
|
|
if $data41 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data42 != @tba1@ then
|
|
return -1
|
|
endi
|
|
if $data50 != @21-11-11 09:00:05.000@ then
|
|
return -1
|
|
endi
|
|
if $data51 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data52 != @tba1@ then
|
|
return -1
|
|
endi
|
|
if $data60 != @21-11-11 09:00:06.000@ then
|
|
return -1
|
|
endi
|
|
if $data61 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data62 != @tba1@ then
|
|
return -1
|
|
endi
|
|
if $data70 != @21-11-11 09:00:07.000@ then
|
|
return -1
|
|
endi
|
|
if $data71 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data72 != @tba1@ then
|
|
return -1
|
|
endi
|
|
if $data80 != @21-11-11 09:00:08.000@ then
|
|
return -1
|
|
endi
|
|
if $data81 != @nan@ then
|
|
return -1
|
|
endi
|
|
if $data82 != @tba1@ then
|
|
return -1
|
|
endi
|
|
if $data90 != @21-11-11 09:00:09.000@ then
|
|
return -1
|
|
endi
|
|
if $data91 != @1.570796327@ then
|
|
return -1
|
|
endi
|
|
if $data92 != @tba1@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(elapsed(ts)) from tba1;
|
|
sql select acos(elapsed(ts)) from tba1;
|
|
if $data00 != @nan@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(rate(c2)) from tba1;
|
|
sql select acos(rate(c2)) from tba1;
|
|
if $data00 != @0.458874205@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(irate(c2)) from tba1;
|
|
sql select acos(irate(c2)) from tba1;
|
|
if $data00 != @1.570796327@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(first(c2)) from tba1;
|
|
sql select acos(first(c2)) from tba1;
|
|
if $data00 != @0.000000000@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(last(c2)) from tba1;
|
|
sql select acos(last(c2)) from tba1;
|
|
if $data00 != @1.570796327@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(last_row(c2)) from tba1;
|
|
sql select acos(last_row(c2)) from tba1;
|
|
if $data00 != @1.570796327@ then
|
|
return -1
|
|
endi
|
|
print execute sql select acos(top(c2, 1)) from tba1;
|
|
sql_error select acos(top(c2, 1)) from tba1;
|
|
print execute sql select acos(bottom(c2, 1)) from tba1;
|
|
sql_error select acos(bottom(c2, 1)) from tba1;
|
|
print execute sql select acos(leastsquares(c2, 1, 1)) from tba1;
|
|
sql_error select acos(leastsquares(c2, 1, 1)) from tba1;
|
|
print execute sql select acos(derivative(c2, 1s, 0)) from tba1;
|
|
sql_error select acos(derivative(c2, 1s, 0)) from tba1;
|
|
print execute sql select acos(diff(c2)) from tba1;
|
|
sql_error select acos(diff(c2)) from tba1;
|
|
print execute sql select acos(csum(c2)) from tba1;
|
|
sql_error select acos(csum(c2)) from tba1;
|
|
print execute sql select acos(mavg(c2,2)) from tba1;
|
|
sql_error select acos(mavg(c2,2)) from tba1;
|
|
print execute sql select acos(sample(c2,2)) from tba1;
|
|
sql_error select acos(sample(c2,2)) from tba1;
|
|
print execute sql select acos(_block_dist()) from tba1;
|
|
sql_error select acos(_block_dist()) from tba1;
|