提交 e6c1bd7f 编写于 作者: S shenglian zhou

add length / char_length test case

上级 1aac8841
sleep 100
sql connect
sql use db
$emptyString = @@
print execute sql select char_length(*) from tb1;
sql_error select char_length(*) from tb1;
print execute sql select char_length(*) + 1 as a from tb1;
sql_error select char_length(*) + 1 as a from tb1;
print execute sql select char_length(tb1.*) + 1 as a from tb1;
sql_error select char_length(tb1.*) + 1 as a from tb1;
print execute sql select char_length(*) from tb1;
sql_error select char_length(*) from tb1;
print execute sql select char_length(c1) from tb1;
sql_error select char_length(c1) from tb1;
print execute sql select char_length(13) from tb1;
sql_error select char_length(13) from tb1;
print execute sql select char_length(c1) from tb1;
sql_error select char_length(c1) from tb1;
print execute sql select char_length(c2) from tb1;
sql_error select char_length(c2) from tb1;
print execute sql select char_length(c3) from tb1;
sql_error select char_length(c3) from tb1;
print execute sql select char_length(c4) from tb1;
sql_error select char_length(c4) from tb1;
print execute sql select char_length(c5) from tb1;
sql_error select char_length(c5) from tb1;
print execute sql select char_length(c6) from tb1;
sql_error select char_length(c6) from tb1;
print execute sql select char_length(c7) from tb1;
sql_error select char_length(c7) from tb1;
print execute sql select char_length(c9) from tb1;
sql select char_length(c9) from tb1;
if $data00 != @4@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data50 != @4@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
print execute sql select char_length(c15) from tb1;
sql select char_length(c15) from tb1;
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @1@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
print execute sql select char_length(c10) from tb1;
sql_error select char_length(c10) from tb1;
print execute sql select char_length(c11) from tb1;
sql_error select char_length(c11) from tb1;
print execute sql select char_length(c12) from tb1;
sql_error select char_length(c12) from tb1;
print execute sql select char_length(c13) from tb1;
sql_error select char_length(c13) from tb1;
print execute sql select char_length('12345678900000000000000000') from tb1;
sql select char_length('12345678900000000000000000') from tb1;
if $data00 != @26@ then
return -1
endi
if $data10 != @26@ then
return -1
endi
if $data20 != @26@ then
return -1
endi
if $data30 != @26@ then
return -1
endi
if $data40 != @26@ then
return -1
endi
if $data50 != @26@ then
return -1
endi
if $data60 != @26@ then
return -1
endi
print execute sql select distinct char_length(123) from tb1;
sql_error select distinct char_length(123) from tb1;
print execute sql select char_length(t1) from stb1;
sql_error select char_length(t1) from stb1;
print execute sql select char_length(c9),avg(c3) from tb1;
sql_error select char_length(c9),avg(c3) from tb1;
print execute sql select char_length(c9),top(c3,1) from tb1;
sql_error select char_length(c9),top(c3,1) from tb1;
print execute sql select char_length(concat(c9,c15)) from tb1 session(ts, 1s);
sql_error select char_length(concat(c9,c15)) from tb1 session(ts, 1s);
print execute sql select char_length(concat(c9,c15)) from tb1 STATE_WINDOW(c1);
sql_error select char_length(concat(c9,c15)) from tb1 STATE_WINDOW(c1);
print execute sql select char_length(concat(c9,c15)) from tb1 interval(1s) sliding(1s) fill(NULL);
sql_error select char_length(concat(c9,c15)) from tb1 interval(1s) sliding(1s) fill(NULL);
print execute sql select char_length(concat(c9,c15)) from stb1 group by t1;
sql_error select char_length(concat(c9,c15)) from stb1 group by t1;
print execute sql select char_length(concat(c9,c15)) from stb1 group by ts;
sql_error select char_length(concat(c9,c15)) from stb1 group by ts;
print execute sql select char_length(concat(c9,c15)) from stb1 group by c1;
sql_error select char_length(concat(c9,c15)) from stb1 group by c1;
print execute sql select char_length(concat(c9,c15)) from stb1 group by tbname;
sql_error select char_length(concat(c9,c15)) from stb1 group by tbname;
print execute sql select char_length(concat(c9,c15)) from tb1 order by c2;
sql_error select char_length(concat(c9,c15)) from tb1 order by c2;
print execute sql select char_length(c9),char_length(c15) from tbn;
sql select char_length(c9),char_length(c15) from tbn;
if $data00 != @4@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @4@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data20 != @4@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data50 != @4@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
print execute sql select char_length(ts) from (select avg(c2) as a from stb1 interval(1s));
sql_error select char_length(ts) from (select avg(c2) as a from stb1 interval(1s));
print execute sql select char_length(cast(a as binary(10))) from (select abs(c2) as a from tb1);
sql select char_length(cast(a as binary(10))) from (select abs(c2) as a from tb1);
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
print execute sql select char_length("abc") from tb1;
sql select char_length("abc") from tb1;
if $data00 != @3@ then
return -1
endi
if $data10 != @3@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data30 != @3@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
print execute sql select char_length(concat(c9,c15)) from tb1;
sql select char_length(concat(c9,c15)) from tb1;
if $data00 != @5@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @5@ then
return -1
endi
if $data40 != @5@ then
return -1
endi
if $data50 != @7@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
print execute sql select char_length((concat(c9,c15))) from tb1;
sql select char_length((concat(c9,c15))) from tb1;
if $data00 != @5@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @5@ then
return -1
endi
if $data40 != @5@ then
return -1
endi
if $data50 != @7@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
print execute sql select char_length('11')+c2 from tb1;
sql select char_length('11')+c2 from tb1;
if $data00 != @3.000000000@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @4.000000000@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @6.000000000@ then
return -1
endi
if $data50 != @129.000000000@ then
return -1
endi
if $data60 != @-125.000000000@ then
return -1
endi
print execute sql select char_length(c9)+c2 from tb1;
sql select char_length(c9)+c2 from tb1;
if $data00 != @5.000000000@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @8.000000000@ then
return -1
endi
if $data50 != @131.000000000@ then
return -1
endi
if $data60 != @-123.000000000@ then
return -1
endi
print execute sql select char_length(c15)+11 from tb1;
sql select char_length(c15)+11 from tb1;
if $data00 != @12.000000000@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @12.000000000@ then
return -1
endi
if $data40 != @12.000000000@ then
return -1
endi
if $data50 != @14.000000000@ then
return -1
endi
if $data60 != @11.000000000@ then
return -1
endi
print execute sql select char_length(c9),c9,c2 from tb1;
sql select char_length(c9),c9,c2 from tb1;
if $data00 != @4@ then
return -1
endi
if $data01 != @1234@ then
return -1
endi
if $data02 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @NULL@ then
return -1
endi
if $data12 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data21 != @NULL@ then
return -1
endi
if $data22 != @2@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data31 != @3456@ then
return -1
endi
if $data32 != @NULL@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data41 != @4567@ then
return -1
endi
if $data42 != @4@ then
return -1
endi
if $data50 != @4@ then
return -1
endi
if $data51 != @5678@ then
return -1
endi
if $data52 != @127@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
if $data61 != @6789@ then
return -1
endi
if $data62 != @-127@ then
return -1
endi
print execute sql select char_length(c9),t1,ts,tbname,_C0,_c0 from tb1;
sql select char_length(c9),t1,ts,tbname,_C0,_c0 from tb1;
if $data00 != @4@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data02 != @21-11-11 09:00:00.000@ then
return -1
endi
if $data03 != @tb1@ then
return -1
endi
if $data04 != @21-11-11 09:00:00.000@ then
return -1
endi
if $data05 != @21-11-11 09:00:00.000@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data12 != @21-11-11 09:00:01.000@ then
return -1
endi
if $data13 != @tb1@ then
return -1
endi
if $data14 != @21-11-11 09:00:01.000@ then
return -1
endi
if $data15 != @21-11-11 09:00:01.000@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data22 != @21-11-11 09:00:02.000@ then
return -1
endi
if $data23 != @tb1@ then
return -1
endi
if $data24 != @21-11-11 09:00:02.000@ then
return -1
endi
if $data25 != @21-11-11 09:00:02.000@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data32 != @21-11-11 09:00:03.000@ then
return -1
endi
if $data33 != @tb1@ then
return -1
endi
if $data34 != @21-11-11 09:00:03.000@ then
return -1
endi
if $data35 != @21-11-11 09:00:03.000@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data42 != @21-11-11 09:00:04.000@ then
return -1
endi
if $data43 != @tb1@ then
return -1
endi
if $data44 != @21-11-11 09:00:04.000@ then
return -1
endi
if $data45 != @21-11-11 09:00:04.000@ then
return -1
endi
if $data50 != @4@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data52 != @21-11-11 09:00:05.000@ then
return -1
endi
if $data53 != @tb1@ then
return -1
endi
if $data54 != @21-11-11 09:00:05.000@ then
return -1
endi
if $data55 != @21-11-11 09:00:05.000@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
if $data62 != @21-11-11 09:00:06.000@ then
return -1
endi
if $data63 != @tb1@ then
return -1
endi
if $data64 != @21-11-11 09:00:06.000@ then
return -1
endi
if $data65 != @21-11-11 09:00:06.000@ then
return -1
endi
print execute sql select char_length(c9),floor(c3) from tb1;
sql select char_length(c9),floor(c3) from tb1;
if $data00 != @4@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data21 != @NULL@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data31 != @3@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data41 != @4@ then
return -1
endi
if $data50 != @4@ then
return -1
endi
if $data51 != @32767@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
if $data61 != @-32767@ then
return -1
endi
print execute sql select char_length(c9),char_length(concat(c9,c15)) from tb1;
sql select char_length(c9),char_length(concat(c9,c15)) from tb1;
if $data00 != @4@ then
return -1
endi
if $data01 != @5@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data21 != @NULL@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data31 != @5@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data41 != @5@ then
return -1
endi
if $data50 != @4@ then
return -1
endi
if $data51 != @7@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
if $data61 != @4@ then
return -1
endi
print execute sql select char_length(concat(c9,c15)) from tb1 where c9 is not null and c15 is not null;
sql select char_length(concat(c9,c15)) from tb1 where c9 is not null and c15 is not null;
if $data00 != @5@ then
return -1
endi
if $data10 != @5@ then
return -1
endi
if $data20 != @5@ then
return -1
endi
if $data30 != @7@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
print execute sql select char_length(c15) from tb1 order by ts desc;
sql select char_length(c15) from tb1 order by ts desc;
if $data00 != @0@ then
return -1
endi
if $data10 != @3@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data30 != @1@ then
return -1
endi
if $data40 != @NULL@ then
return -1
endi
if $data50 != @NULL@ then
return -1
endi
if $data60 != @1@ then
return -1
endi
print execute sql select char_length(concat(c9,c15)) from tb1 order by ts desc;
sql select char_length(concat(c9,c15)) from tb1 order by ts desc;
if $data00 != @4@ then
return -1
endi
if $data10 != @7@ then
return -1
endi
if $data20 != @5@ then
return -1
endi
if $data30 != @5@ then
return -1
endi
if $data40 != @NULL@ then
return -1
endi
if $data50 != @NULL@ then
return -1
endi
if $data60 != @5@ then
return -1
endi
print execute sql select char_length(concat(c9,c15)) from tb1 order by ts desc limit 3 offset 2;
sql select char_length(concat(c9,c15)) from tb1 order by ts desc limit 3 offset 2;
if $data00 != @5@ then
return -1
endi
if $data10 != @5@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
print execute sql select char_length(c15) from stb1;
sql select char_length(c15) from stb1;
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @1@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data70 != @1@ then
return -1
endi
if $data80 != @1@ then
return -1
endi
if $data90 != @1@ then
return -1
endi
print execute sql select char_length(c15) from stb1 order by ts desc;
sql select char_length(c15) from stb1 order by ts desc;
if $data00 != @1@ then
if $data00 != @0@ then
return -1
endi
endi
if $data20 != @1@ then
if $data20 != @3@ then
return -1
endi
endi
if $data40 != @1@ then
if $data40 != @1@ then
return -1
endi
endi
if $data60 != @1@ then
if $data60 != @1@ then
return -1
endi
endi
if $data80 != @1@ then
if $data80 != @NULL@ then
return -1
endi
endi
print execute sql select char_length(c15),t1 from stb1 order by ts desc;
sql select char_length(c15),t1 from stb1 order by ts desc;
if $data00 != @1@ then
if $data00 != @0@ then
return -1
endi
endi
if $data01 != @2@ then
if $data01 != @1@ then
return -1
endi
endi
if $data20 != @1@ then
if $data20 != @3@ then
return -1
endi
endi
if $data21 != @2@ then
if $data21 != @1@ then
return -1
endi
endi
if $data40 != @1@ then
if $data40 != @1@ then
return -1
endi
endi
if $data41 != @2@ then
if $data41 != @1@ then
return -1
endi
endi
if $data60 != @1@ then
if $data60 != @1@ then
return -1
endi
endi
if $data61 != @2@ then
if $data61 != @1@ then
return -1
endi
endi
if $data80 != @1@ then
if $data80 != @NULL@ then
return -1
endi
endi
if $data81 != @2@ then
if $data81 != @1@ then
return -1
endi
endi
print execute sql select char_length(c15),tbname from stb1;
sql select char_length(c15),tbname from stb1;
if $data00 != @1@ then
return -1
endi
if $data01 != @tb1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @tb1@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data21 != @tb1@ then
return -1
endi
if $data30 != @1@ then
return -1
endi
if $data31 != @tb1@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data41 != @tb1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data51 != @tb1@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data61 != @tb1@ then
return -1
endi
if $data70 != @1@ then
return -1
endi
if $data71 != @tb2@ then
return -1
endi
if $data80 != @1@ then
return -1
endi
if $data81 != @tb2@ then
return -1
endi
if $data90 != @1@ then
return -1
endi
if $data91 != @tb2@ then
return -1
endi
print execute sql select char_length(c15),tbname from stb1 where t1 > 1;
sql select char_length(c15),tbname from stb1 where t1 > 1;
if $data00 != @1@ then
return -1
endi
if $data01 != @tb2@ then
return -1
endi
if $data10 != @1@ then
return -1
endi
if $data11 != @tb2@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data21 != @tb2@ then
return -1
endi
if $data30 != @1@ then
return -1
endi
if $data31 != @tb2@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data41 != @tb2@ then
return -1
endi
if $data50 != @1@ then
return -1
endi
if $data51 != @tb2@ then
return -1
endi
if $data60 != @1@ then
return -1
endi
if $data61 != @tb2@ then
return -1
endi
print execute sql select char_length(c9),char_length(c15) from tbn;
sql select char_length(c9),char_length(c15) from tbn;
if $data00 != @4@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @4@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data20 != @4@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data50 != @4@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
print execute sql select char_length(c9),char_length(c15) from tbn order by ts desc;
sql select char_length(c9),char_length(c15) from tbn order by ts desc;
if $data00 != @4@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @4@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data20 != @4@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data50 != @4@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
print execute sql select char_length(char_length(c9)) from tbn;
sql_error select char_length(char_length(c9)) from tbn;
print execute sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 interval(1s));
sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 interval(1s));
if $data00 != @8@ then
return -1
endi
if $data10 != @8@ then
return -1
endi
if $data20 != @8@ then
return -1
endi
if $data30 != @8@ then
return -1
endi
if $data40 != @8@ then
return -1
endi
if $data50 != @9@ then
return -1
endi
if $data60 != @10@ then
return -1
endi
print execute sql select char_length(c15) from (select * from stb1);
sql select char_length(c15) from (select * from stb1);
if $data00 != @0@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @0@ then
return -1
endi
if $data40 != @0@ then
return -1
endi
if $data50 != @0@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data70 != @0@ then
return -1
endi
if $data80 != @0@ then
return -1
endi
if $data90 != @0@ then
return -1
endi
print execute sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null));
sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null));
if $data00 != @8@ then
return -1
endi
if $data10 != @8@ then
return -1
endi
if $data20 != @8@ then
return -1
endi
if $data30 != @8@ then
return -1
endi
if $data40 != @8@ then
return -1
endi
if $data50 != @9@ then
return -1
endi
if $data60 != @10@ then
return -1
endi
if $data70 != @NULL@ then
return -1
endi
if $data80 != @NULL@ then
return -1
endi
if $data90 != @NULL@ then
return -1
endi
print execute sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by ts;
sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by ts;
if $data00 != @8@ then
return -1
endi
if $data10 != @8@ then
return -1
endi
if $data20 != @8@ then
return -1
endi
if $data30 != @8@ then
return -1
endi
if $data40 != @8@ then
return -1
endi
if $data50 != @9@ then
return -1
endi
if $data60 != @10@ then
return -1
endi
if $data70 != @NULL@ then
return -1
endi
if $data80 != @NULL@ then
return -1
endi
if $data90 != @NULL@ then
return -1
endi
print execute sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by ts desc;
sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by ts desc;
if $data00 != @NULL@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @10@ then
return -1
endi
if $data40 != @9@ then
return -1
endi
if $data50 != @8@ then
return -1
endi
if $data60 != @8@ then
return -1
endi
if $data70 != @8@ then
return -1
endi
if $data80 != @8@ then
return -1
endi
if $data90 != @8@ then
return -1
endi
print execute sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by a desc;
sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by a desc;
if $data00 != @NULL@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @9@ then
return -1
endi
if $data40 != @8@ then
return -1
endi
if $data50 != @8@ then
return -1
endi
if $data60 != @8@ then
return -1
endi
if $data70 != @8@ then
return -1
endi
if $data80 != @8@ then
return -1
endi
if $data90 != @10@ then
return -1
endi
print execute sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by a;
sql select char_length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by a;
if $data00 != @10@ then
return -1
endi
if $data10 != @8@ then
return -1
endi
if $data20 != @8@ then
return -1
endi
if $data30 != @8@ then
return -1
endi
if $data40 != @8@ then
return -1
endi
if $data50 != @8@ then
return -1
endi
if $data60 != @9@ then
return -1
endi
if $data70 != @NULL@ then
return -1
endi
if $data80 != @NULL@ then
return -1
endi
if $data90 != @NULL@ then
return -1
endi
print execute sql select char_length(cast(a as binary(10))) from (select abs(c2) as a from tb1);
sql select char_length(cast(a as binary(10))) from (select abs(c2) as a from tb1);
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
print execute sql select char_length(tb1.c15),char_length(tb2.c15) from tb1,tb2 where tb1.ts=tb2.ts;
sql select char_length(tb1.c15),char_length(tb2.c15) from tb1,tb2 where tb1.ts=tb2.ts;
if $data00 != @1@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data30 != @1@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
print execute sql select char_length(c15) from tb1 union all select char_length(c15) from tb2;
sql select char_length(c15) from tb1 union all select char_length(c15) from tb2;
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @1@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data70 != @1@ then
return -1
endi
if $data80 != @1@ then
return -1
endi
if $data90 != @1@ then
return -1
endi
sleep 100
sql connect
sql use db
$emptyString = @@
print execute sql select char_length(stb1.c14),char_length(stba.c15) from stb1,stba where stb1.t1=stba.t1 and stb1.ts=stba.ts;
sql select char_length(stb1.c14),char_length(stba.c15) from stb1,stba where stb1.t1=stba.t1 and stb1.ts=stba.ts;
if $data00 != @1@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data50 != @2@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
print execute sql select char_length(c14) as a from stb1 union all select char_length(c15) as a from stba;
sql select char_length(c14) as a from stb1 union all select char_length(c15) as a from stba;
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @2@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data70 != @1@ then
return -1
endi
if $data80 != @1@ then
return -1
endi
if $data90 != @1@ then
return -1
endi
print execute sql select char_length(c8) from stba;
sql select char_length(c8) from stba;
if $data00 != @3@ then
return -1
endi
if $data10 != @3@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data30 != @3@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
if $data70 != @3@ then
return -1
endi
if $data80 != @3@ then
return -1
endi
if $data90 != @3@ then
return -1
endi
print execute sql select char_length(c9) from stba;
sql select char_length(c9) from stba;
if $data00 != @4@ then
return -1
endi
if $data10 != @4@ then
return -1
endi
if $data20 != @4@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data50 != @4@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
if $data70 != @4@ then
return -1
endi
if $data80 != @4@ then
return -1
endi
if $data90 != @4@ then
return -1
endi
print execute sql select char_length(cast(min(c2) as binary(20))) from tba1;
sql select char_length(cast(min(c2) as binary(20))) from tba1;
if $data00 != @1@ then
return -1
endi
print execute sql select char_length(cast(max(c2) as binary(20))) from tba1;
sql select char_length(cast(max(c2) as binary(20))) from tba1;
if $data00 != @1@ then
return -1
endi
print execute sql select char_length(cast(count(c2) as binary(20))) from tba1;
sql select char_length(cast(count(c2) as binary(20))) from tba1;
if $data00 != @2@ then
return -1
endi
print execute sql select char_length(cast(sum(c2) as binary(20))) from tba1;
sql select char_length(cast(sum(c2) as binary(20))) from tba1;
if $data00 != @3@ then
return -1
endi
print execute sql select char_length(cast(avg(c2) as binary(20))) from tba1;
sql select char_length(cast(avg(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select char_length(cast(percentile(c2, 10) as binary(20))) from tba1;
sql select char_length(cast(percentile(c2, 10) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select char_length(cast(apercentile(c2, 10) as binary(20))) from tba1;
sql select char_length(cast(apercentile(c2, 10) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select char_length(cast(stddev(c2) as binary(20))) from tba1;
sql select char_length(cast(stddev(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select char_length(cast(spread(c2) as binary(20))) from tba1;
sql select char_length(cast(spread(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select char_length(cast(twa(c2) as binary(20))) from tba1;
sql select char_length(cast(twa(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select char_length(cast(leastsquares(c2, 1, 1) as binary(20))) from tba1;
sql_error select char_length(cast(leastsquares(c2, 1, 1) as binary(20))) from tba1;
print execute sql select char_length(cast(interp(c2) as binary(20))) from tba1 every(1s)
sql select char_length(cast(interp(c2) as binary(20))) from tba1 every(1s)
if $data00 != @21-11-11 09:00:00.000@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @21-11-11 09:00:01.000@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data20 != @21-11-11 09:00:02.000@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data30 != @21-11-11 09:00:03.000@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data40 != @21-11-11 09:00:04.000@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data50 != @21-11-11 09:00:05.000@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data60 != @21-11-11 09:00:06.000@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
if $data70 != @21-11-11 09:00:07.000@ then
return -1
endi
if $data71 != @1@ then
return -1
endi
if $data80 != @21-11-11 09:00:08.000@ then
return -1
endi
if $data81 != @1@ then
return -1
endi
if $data90 != @21-11-11 09:00:09.000@ then
return -1
endi
if $data91 != @1@ then
return -1
endi
print execute sql select char_length(cast(interp(c2) as binary(20))) stba every(1s) group by tbname;
sql_error select char_length(cast(interp(c2) as binary(20))) stba every(1s) group by tbname;
print execute sql select char_length(cast(elapsed(ts) as binary(20))) from tba1;
sql select char_length(cast(elapsed(ts) as binary(20))) from tba1;
if $data00 != @12@ then
return -1
endi
print execute sql select char_length(cast(rate(c2) as binary(20))) from tba1;
sql select char_length(cast(rate(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select char_length(cast(irate(c2) as binary(20))) from tba1;
sql select char_length(cast(irate(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select char_length(cast(first(c2) as binary(20))) from tba1;
sql select char_length(cast(first(c2) as binary(20))) from tba1;
if $data00 != @1@ then
return -1
endi
print execute sql select char_length(cast(last(c2) as binary(20))) from tba1;
sql select char_length(cast(last(c2) as binary(20))) from tba1;
if $data00 != @1@ then
return -1
endi
print execute sql select char_length(cast(last_row(c2) as binary(20))) from tba1;
sql select char_length(cast(last_row(c2) as binary(20))) from tba1;
if $data00 != @1@ then
return -1
endi
print execute sql select char_length(cast(top(c2, 1) as binary(20))) from tba1;
sql_error select char_length(cast(top(c2, 1) as binary(20))) from tba1;
print execute sql select char_length(cast(bottom(c2, 1) as binary(20))) from tba1;
sql_error select char_length(cast(bottom(c2, 1) as binary(20))) from tba1;
print execute sql select char_length(cast(leastsquares(c2, 1, 1) as binary(20))) from tba1;
sql_error select char_length(cast(leastsquares(c2, 1, 1) as binary(20))) from tba1;
print execute sql select char_length(cast(derivative(c2, 1s, 0) as binary(20))) from tba1;
sql_error select char_length(cast(derivative(c2, 1s, 0) as binary(20))) from tba1;
print execute sql select char_length(cast(diff(c2) as binary(20))) from tba1;
sql_error select char_length(cast(diff(c2) as binary(20))) from tba1;
print execute sql select char_length(cast(csum(c2) as binary(20))) from tba1;
sql_error select char_length(cast(csum(c2) as binary(20))) from tba1;
print execute sql select char_length(cast(mavg(c2,2) as binary(20))) from tba1;
sql_error select char_length(cast(mavg(c2,2) as binary(20))) from tba1;
print execute sql select char_length(cast(sample(c2,2) as binary(20))) from tba1;
sql_error select char_length(cast(sample(c2,2) as binary(20))) from tba1;
print execute sql select char_length(cast(_block_dist() as binary(20))) from tba1;
sql_error select char_length(cast(_block_dist() as binary(20))) from tba1;
sleep 100
sql connect
sql use db
$emptyString = @@
print execute sql select length(*) from tb1;
sql_error select length(*) from tb1;
print execute sql select length(*) + 1 as a from tb1;
sql_error select length(*) + 1 as a from tb1;
print execute sql select length(tb1.*) + 1 as a from tb1;
sql_error select length(tb1.*) + 1 as a from tb1;
print execute sql select length(*) from tb1;
sql_error select length(*) from tb1;
print execute sql select length(c1) from tb1;
sql_error select length(c1) from tb1;
print execute sql select length(13) from tb1;
sql_error select length(13) from tb1;
print execute sql select length(c1) from tb1;
sql_error select length(c1) from tb1;
print execute sql select length(c2) from tb1;
sql_error select length(c2) from tb1;
print execute sql select length(c3) from tb1;
sql_error select length(c3) from tb1;
print execute sql select length(c4) from tb1;
sql_error select length(c4) from tb1;
print execute sql select length(c5) from tb1;
sql_error select length(c5) from tb1;
print execute sql select length(c6) from tb1;
sql_error select length(c6) from tb1;
print execute sql select length(c7) from tb1;
sql_error select length(c7) from tb1;
print execute sql select length(c8) from tb1;
sql select length(c8) from tb1;
if $data00 != @3@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
print execute sql select length(c14) from tb1;
sql select length(c14) from tb1;
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @2@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
print execute sql select length(c10) from tb1;
sql_error select length(c10) from tb1;
print execute sql select length(c11) from tb1;
sql_error select length(c11) from tb1;
print execute sql select length(c12) from tb1;
sql_error select length(c12) from tb1;
print execute sql select length(c13) from tb1;
sql_error select length(c13) from tb1;
print execute sql select length('12345678900000000000000000') from tb1;
sql select length('12345678900000000000000000') from tb1;
if $data00 != @26@ then
return -1
endi
if $data10 != @26@ then
return -1
endi
if $data20 != @26@ then
return -1
endi
if $data30 != @26@ then
return -1
endi
if $data40 != @26@ then
return -1
endi
if $data50 != @26@ then
return -1
endi
if $data60 != @26@ then
return -1
endi
print execute sql select distinct length(123) from tb1;
sql_error select distinct length(123) from tb1;
print execute sql select length(t1) from stb1;
sql_error select length(t1) from stb1;
print execute sql select length(c8),avg(c3) from tb1;
sql_error select length(c8),avg(c3) from tb1;
print execute sql select length(c8),top(c3,1) from tb1;
sql_error select length(c8),top(c3,1) from tb1;
print execute sql select length(concat(c8,c14)) from tb1 session(ts, 1s);
sql_error select length(concat(c8,c14)) from tb1 session(ts, 1s);
print execute sql select length(concat(c8,c14)) from tb1 STATE_WINDOW(c1);
sql_error select length(concat(c8,c14)) from tb1 STATE_WINDOW(c1);
print execute sql select length(concat(c8,c14)) from tb1 interval(1s) sliding(1s) fill(NULL);
sql_error select length(concat(c8,c14)) from tb1 interval(1s) sliding(1s) fill(NULL);
print execute sql select length(concat(c8,c14)) from stb1 group by t1;
sql_error select length(concat(c8,c14)) from stb1 group by t1;
print execute sql select length(concat(c8,c14)) from stb1 group by ts;
sql_error select length(concat(c8,c14)) from stb1 group by ts;
print execute sql select length(concat(c8,c14)) from stb1 group by c1;
sql_error select length(concat(c8,c14)) from stb1 group by c1;
print execute sql select length(concat(c8,c14)) from stb1 group by tbname;
sql_error select length(concat(c8,c14)) from stb1 group by tbname;
print execute sql select length(concat(c8,c14)) from tb1 order by c2;
sql_error select length(concat(c8,c14)) from tb1 order by c2;
print execute sql select length(c8),length(c14) from tbn;
sql select length(c8),length(c14) from tbn;
if $data00 != @3@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @3@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data30 != @3@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
print execute sql select length(ts) from (select avg(c2) as a from stb1 interval(1s));
sql_error select length(ts) from (select avg(c2) as a from stb1 interval(1s));
print execute sql select length(cast(a as binary(10))) from (select abs(c2) as a from tb1);
sql select length(cast(a as binary(10))) from (select abs(c2) as a from tb1);
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
print execute sql select length("abc") from tb1;
sql select length("abc") from tb1;
if $data00 != @3@ then
return -1
endi
if $data10 != @3@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data30 != @3@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
print execute sql select length(concat(c8,c14)) from tb1;
sql select length(concat(c8,c14)) from tb1;
if $data00 != @4@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @4@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data50 != @5@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
print execute sql select length((concat(c8,c14))) from tb1;
sql select length((concat(c8,c14))) from tb1;
if $data00 != @4@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @4@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data50 != @5@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
print execute sql select length('11')+c2 from tb1;
sql select length('11')+c2 from tb1;
if $data00 != @3.000000000@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @4.000000000@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @6.000000000@ then
return -1
endi
if $data50 != @129.000000000@ then
return -1
endi
if $data60 != @-125.000000000@ then
return -1
endi
print execute sql select length(c8)+c2 from tb1;
sql select length(c8)+c2 from tb1;
if $data00 != @4.000000000@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @5.000000000@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @7.000000000@ then
return -1
endi
if $data50 != @130.000000000@ then
return -1
endi
if $data60 != @-124.000000000@ then
return -1
endi
print execute sql select length(c14)+11 from tb1;
sql select length(c14)+11 from tb1;
if $data00 != @12.000000000@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @12.000000000@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @12.000000000@ then
return -1
endi
if $data50 != @13.000000000@ then
return -1
endi
if $data60 != @11.000000000@ then
return -1
endi
print execute sql select length(c8),c8,c2 from tb1;
sql select length(c8),c8,c2 from tb1;
if $data00 != @3@ then
return -1
endi
if $data01 != @123@ then
return -1
endi
if $data02 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @NULL@ then
return -1
endi
if $data12 != @NULL@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data21 != @234@ then
return -1
endi
if $data22 != @2@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data31 != @NULL@ then
return -1
endi
if $data32 != @NULL@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data41 != @456@ then
return -1
endi
if $data42 != @4@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data51 != @567@ then
return -1
endi
if $data52 != @127@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
if $data61 != @678@ then
return -1
endi
if $data62 != @-127@ then
return -1
endi
print execute sql select length(c8),t1,ts,tbname,_C0,_c0 from tb1;
sql select length(c8),t1,ts,tbname,_C0,_c0 from tb1;
if $data00 != @3@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data02 != @21-11-11 09:00:00.000@ then
return -1
endi
if $data03 != @tb1@ then
return -1
endi
if $data04 != @21-11-11 09:00:00.000@ then
return -1
endi
if $data05 != @21-11-11 09:00:00.000@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data12 != @21-11-11 09:00:01.000@ then
return -1
endi
if $data13 != @tb1@ then
return -1
endi
if $data14 != @21-11-11 09:00:01.000@ then
return -1
endi
if $data15 != @21-11-11 09:00:01.000@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data22 != @21-11-11 09:00:02.000@ then
return -1
endi
if $data23 != @tb1@ then
return -1
endi
if $data24 != @21-11-11 09:00:02.000@ then
return -1
endi
if $data25 != @21-11-11 09:00:02.000@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data32 != @21-11-11 09:00:03.000@ then
return -1
endi
if $data33 != @tb1@ then
return -1
endi
if $data34 != @21-11-11 09:00:03.000@ then
return -1
endi
if $data35 != @21-11-11 09:00:03.000@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data42 != @21-11-11 09:00:04.000@ then
return -1
endi
if $data43 != @tb1@ then
return -1
endi
if $data44 != @21-11-11 09:00:04.000@ then
return -1
endi
if $data45 != @21-11-11 09:00:04.000@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data52 != @21-11-11 09:00:05.000@ then
return -1
endi
if $data53 != @tb1@ then
return -1
endi
if $data54 != @21-11-11 09:00:05.000@ then
return -1
endi
if $data55 != @21-11-11 09:00:05.000@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
if $data62 != @21-11-11 09:00:06.000@ then
return -1
endi
if $data63 != @tb1@ then
return -1
endi
if $data64 != @21-11-11 09:00:06.000@ then
return -1
endi
if $data65 != @21-11-11 09:00:06.000@ then
return -1
endi
print execute sql select length(c8),floor(c3) from tb1;
sql select length(c8),floor(c3) from tb1;
if $data00 != @3@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @NULL@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data21 != @NULL@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data31 != @3@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data41 != @4@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data51 != @32767@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
if $data61 != @-32767@ then
return -1
endi
print execute sql select length(c8),length(concat(c8,c14)) from tb1;
sql select length(c8),length(concat(c8,c14)) from tb1;
if $data00 != @3@ then
return -1
endi
if $data01 != @4@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @NULL@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data21 != @4@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data31 != @NULL@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data41 != @4@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data51 != @5@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
if $data61 != @3@ then
return -1
endi
print execute sql select length(concat(c8,c14)) from tb1 where c9 is not null and c15 is not null;
sql select length(concat(c8,c14)) from tb1 where c9 is not null and c15 is not null;
if $data00 != @4@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @4@ then
return -1
endi
if $data30 != @5@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
print execute sql select length(c14) from tb1 order by ts desc;
sql select length(c14) from tb1 order by ts desc;
if $data00 != @0@ then
return -1
endi
if $data10 != @2@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @NULL@ then
return -1
endi
if $data60 != @1@ then
return -1
endi
print execute sql select length(concat(c8,c14)) from tb1 order by ts desc;
sql select length(concat(c8,c14)) from tb1 order by ts desc;
if $data00 != @3@ then
return -1
endi
if $data10 != @5@ then
return -1
endi
if $data20 != @4@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data50 != @NULL@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
print execute sql select length(concat(c8,c14)) from tb1 order by ts desc limit 3 offset 2;
sql select length(concat(c8,c14)) from tb1 order by ts desc limit 3 offset 2;
if $data00 != @4@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @4@ then
return -1
endi
print execute sql select length(c14) from stb1;
sql select length(c14) from stb1;
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @2@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data70 != @1@ then
return -1
endi
if $data80 != @1@ then
return -1
endi
if $data90 != @1@ then
return -1
endi
print execute sql select length(c14) from stb1 order by ts desc;
sql select length(c14) from stb1 order by ts desc;
if $data00 != @1@ then
if $data00 != @0@ then
return -1
endi
endi
if $data20 != @1@ then
if $data20 != @2@ then
return -1
endi
endi
if $data40 != @1@ then
if $data40 != @1@ then
return -1
endi
endi
if $data60 != @1@ then
if $data60 != @NULL@ then
return -1
endi
endi
if $data80 != @1@ then
if $data80 != @1@ then
return -1
endi
endi
print execute sql select length(c14),t1 from stb1 order by ts desc;
sql select length(c14),t1 from stb1 order by ts desc;
if $data00 != @1@ then
if $data00 != @0@ then
return -1
endi
endi
if $data01 != @2@ then
if $data01 != @1@ then
return -1
endi
endi
if $data20 != @1@ then
if $data20 != @2@ then
return -1
endi
endi
if $data21 != @2@ then
if $data21 != @1@ then
return -1
endi
endi
if $data40 != @1@ then
if $data40 != @1@ then
return -1
endi
endi
if $data41 != @2@ then
if $data41 != @1@ then
return -1
endi
endi
if $data60 != @1@ then
if $data60 != @NULL@ then
return -1
endi
endi
if $data61 != @2@ then
if $data61 != @1@ then
return -1
endi
endi
if $data80 != @1@ then
if $data80 != @1@ then
return -1
endi
endi
if $data81 != @2@ then
if $data81 != @1@ then
return -1
endi
endi
print execute sql select length(c15),tbname from stb1;
sql select length(c15),tbname from stb1;
if $data00 != @4@ then
return -1
endi
if $data01 != @tb1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @tb1@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data21 != @tb1@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data31 != @tb1@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data41 != @tb1@ then
return -1
endi
if $data50 != @12@ then
return -1
endi
if $data51 != @tb1@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data61 != @tb1@ then
return -1
endi
if $data70 != @4@ then
return -1
endi
if $data71 != @tb2@ then
return -1
endi
if $data80 != @4@ then
return -1
endi
if $data81 != @tb2@ then
return -1
endi
if $data90 != @4@ then
return -1
endi
if $data91 != @tb2@ then
return -1
endi
print execute sql select length(c15),tbname from stb1 where t1 > 1;
sql select length(c15),tbname from stb1 where t1 > 1;
if $data00 != @4@ then
return -1
endi
if $data01 != @tb2@ then
return -1
endi
if $data10 != @4@ then
return -1
endi
if $data11 != @tb2@ then
return -1
endi
if $data20 != @4@ then
return -1
endi
if $data21 != @tb2@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data31 != @tb2@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data41 != @tb2@ then
return -1
endi
if $data50 != @4@ then
return -1
endi
if $data51 != @tb2@ then
return -1
endi
if $data60 != @4@ then
return -1
endi
if $data61 != @tb2@ then
return -1
endi
print execute sql select length(c8),length(c14) from tbn;
sql select length(c8),length(c14) from tbn;
if $data00 != @3@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @3@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data30 != @3@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
print execute sql select length(c8),length(c14) from tbn order by ts desc;
sql select length(c8),length(c14) from tbn order by ts desc;
if $data00 != @3@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @3@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data30 != @3@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
print execute sql select length(length(c8)) from tbn;
sql_error select length(length(c8)) from tbn;
print execute sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 interval(1s));
sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 interval(1s));
if $data00 != @8@ then
return -1
endi
if $data10 != @8@ then
return -1
endi
if $data20 != @8@ then
return -1
endi
if $data30 != @8@ then
return -1
endi
if $data40 != @8@ then
return -1
endi
if $data50 != @9@ then
return -1
endi
if $data60 != @10@ then
return -1
endi
print execute sql select length(c14) from (select * from stb1);
sql select length(c14) from (select * from stb1);
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @2@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data70 != @1@ then
return -1
endi
if $data80 != @1@ then
return -1
endi
if $data90 != @1@ then
return -1
endi
print execute sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null));
sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null));
if $data00 != @8@ then
return -1
endi
if $data10 != @8@ then
return -1
endi
if $data20 != @8@ then
return -1
endi
if $data30 != @8@ then
return -1
endi
if $data40 != @8@ then
return -1
endi
if $data50 != @9@ then
return -1
endi
if $data60 != @10@ then
return -1
endi
if $data70 != @NULL@ then
return -1
endi
if $data80 != @NULL@ then
return -1
endi
if $data90 != @NULL@ then
return -1
endi
print execute sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by ts;
sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by ts;
if $data00 != @8@ then
return -1
endi
if $data10 != @8@ then
return -1
endi
if $data20 != @8@ then
return -1
endi
if $data30 != @8@ then
return -1
endi
if $data40 != @8@ then
return -1
endi
if $data50 != @9@ then
return -1
endi
if $data60 != @10@ then
return -1
endi
if $data70 != @NULL@ then
return -1
endi
if $data80 != @NULL@ then
return -1
endi
if $data90 != @NULL@ then
return -1
endi
print execute sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by ts desc;
sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by ts desc;
if $data00 != @NULL@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @10@ then
return -1
endi
if $data40 != @9@ then
return -1
endi
if $data50 != @8@ then
return -1
endi
if $data60 != @8@ then
return -1
endi
if $data70 != @8@ then
return -1
endi
if $data80 != @8@ then
return -1
endi
if $data90 != @8@ then
return -1
endi
print execute sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by a desc;
sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by a desc;
if $data00 != @NULL@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @9@ then
return -1
endi
if $data40 != @8@ then
return -1
endi
if $data50 != @8@ then
return -1
endi
if $data60 != @8@ then
return -1
endi
if $data70 != @8@ then
return -1
endi
if $data80 != @8@ then
return -1
endi
if $data90 != @10@ then
return -1
endi
print execute sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by a;
sql select length(cast(a as binary(10))) from (select avg(c2) as a from stb1 where ts >= '2021-11-11 09:00:00.000' and ts <= '2021-11-11 09:00:09.000' interval(1s) fill(null)) order by a;
if $data00 != @10@ then
return -1
endi
if $data10 != @8@ then
return -1
endi
if $data20 != @8@ then
return -1
endi
if $data30 != @8@ then
return -1
endi
if $data40 != @8@ then
return -1
endi
if $data50 != @8@ then
return -1
endi
if $data60 != @9@ then
return -1
endi
if $data70 != @NULL@ then
return -1
endi
if $data80 != @NULL@ then
return -1
endi
if $data90 != @NULL@ then
return -1
endi
print execute sql select length(cast(a as binary(10))) from (select abs(c2) as a from tb1);
sql select length(cast(a as binary(10))) from (select abs(c2) as a from tb1);
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
print execute sql select length(tb1.c15),length(tb2.c15) from tb1,tb2 where tb1.ts=tb2.ts;
sql select length(tb1.c15),length(tb2.c15) from tb1,tb2 where tb1.ts=tb2.ts;
if $data00 != @4@ then
return -1
endi
if $data01 != @4@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @4@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data21 != @4@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data31 != @4@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data41 != @4@ then
return -1
endi
if $data50 != @12@ then
return -1
endi
if $data51 != @4@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data61 != @4@ then
return -1
endi
print execute sql select length(c15) from tb1 union all select length(c15) from tb2;
sql select length(c15) from tb1 union all select length(c15) from tb2;
if $data00 != @4@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @NULL@ then
return -1
endi
if $data30 != @4@ then
return -1
endi
if $data40 != @4@ then
return -1
endi
if $data50 != @12@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data70 != @4@ then
return -1
endi
if $data80 != @4@ then
return -1
endi
if $data90 != @4@ then
return -1
endi
sleep 100
sql connect
sql use db
$emptyString = @@
print execute sql select length(stb1.c14),length(stba.c15) from stb1,stba where stb1.t1=stba.t1 and stb1.ts=stba.ts;
sql select length(stb1.c14),length(stba.c15) from stb1,stba where stb1.t1=stba.t1 and stb1.ts=stba.ts;
if $data00 != @1@ then
return -1
endi
if $data01 != @4@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data11 != @4@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data21 != @4@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data31 != @4@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data41 != @4@ then
return -1
endi
if $data50 != @2@ then
return -1
endi
if $data51 != @4@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data61 != @4@ then
return -1
endi
print execute sql select length(c14) as a from stb1 union all select length(c15) as a from stba;
sql select length(c14) as a from stb1 union all select length(c15) as a from stba;
if $data00 != @1@ then
return -1
endi
if $data10 != @NULL@ then
return -1
endi
if $data20 != @1@ then
return -1
endi
if $data30 != @NULL@ then
return -1
endi
if $data40 != @1@ then
return -1
endi
if $data50 != @2@ then
return -1
endi
if $data60 != @0@ then
return -1
endi
if $data70 != @1@ then
return -1
endi
if $data80 != @1@ then
return -1
endi
if $data90 != @1@ then
return -1
endi
print execute sql select length(c8) from stba;
sql select length(c8) from stba;
if $data00 != @3@ then
return -1
endi
if $data10 != @3@ then
return -1
endi
if $data20 != @3@ then
return -1
endi
if $data30 != @3@ then
return -1
endi
if $data40 != @3@ then
return -1
endi
if $data50 != @3@ then
return -1
endi
if $data60 != @3@ then
return -1
endi
if $data70 != @3@ then
return -1
endi
if $data80 != @3@ then
return -1
endi
if $data90 != @3@ then
return -1
endi
print execute sql select length(c9) from stba;
sql select length(c9) from stba;
if $data00 != @16@ then
return -1
endi
if $data10 != @16@ then
return -1
endi
if $data20 != @16@ then
return -1
endi
if $data30 != @16@ then
return -1
endi
if $data40 != @16@ then
return -1
endi
if $data50 != @16@ then
return -1
endi
if $data60 != @16@ then
return -1
endi
if $data70 != @16@ then
return -1
endi
if $data80 != @16@ then
return -1
endi
if $data90 != @16@ then
return -1
endi
print execute sql select length(cast(min(c2) as binary(20))) from tba1;
sql select length(cast(min(c2) as binary(20))) from tba1;
if $data00 != @1@ then
return -1
endi
print execute sql select length(cast(max(c2) as binary(20))) from tba1;
sql select length(cast(max(c2) as binary(20))) from tba1;
if $data00 != @1@ then
return -1
endi
print execute sql select length(cast(count(c2) as binary(20))) from tba1;
sql select length(cast(count(c2) as binary(20))) from tba1;
if $data00 != @2@ then
return -1
endi
print execute sql select length(cast(sum(c2) as binary(20))) from tba1;
sql select length(cast(sum(c2) as binary(20))) from tba1;
if $data00 != @3@ then
return -1
endi
print execute sql select length(cast(avg(c2) as binary(20))) from tba1;
sql select length(cast(avg(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select length(cast(percentile(c2, 10) as binary(20))) from tba1;
sql select length(cast(percentile(c2, 10) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select length(cast(apercentile(c2, 10) as binary(20))) from tba1;
sql select length(cast(apercentile(c2, 10) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select length(cast(stddev(c2) as binary(20))) from tba1;
sql select length(cast(stddev(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select length(cast(spread(c2) as binary(20))) from tba1;
sql select length(cast(spread(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select length(cast(twa(c2) as binary(20))) from tba1;
sql select length(cast(twa(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select length(cast(leastsquares(c2, 1, 1) as binary(20))) from tba1;
sql_error select length(cast(leastsquares(c2, 1, 1) as binary(20))) from tba1;
print execute sql select length(cast(interp(c2) as binary(20))) from tba1 every(1s)
sql select length(cast(interp(c2) as binary(20))) from tba1 every(1s)
if $data00 != @21-11-11 09:00:00.000@ then
return -1
endi
if $data01 != @1@ then
return -1
endi
if $data10 != @21-11-11 09:00:01.000@ then
return -1
endi
if $data11 != @1@ then
return -1
endi
if $data20 != @21-11-11 09:00:02.000@ then
return -1
endi
if $data21 != @1@ then
return -1
endi
if $data30 != @21-11-11 09:00:03.000@ then
return -1
endi
if $data31 != @1@ then
return -1
endi
if $data40 != @21-11-11 09:00:04.000@ then
return -1
endi
if $data41 != @1@ then
return -1
endi
if $data50 != @21-11-11 09:00:05.000@ then
return -1
endi
if $data51 != @1@ then
return -1
endi
if $data60 != @21-11-11 09:00:06.000@ then
return -1
endi
if $data61 != @1@ then
return -1
endi
if $data70 != @21-11-11 09:00:07.000@ then
return -1
endi
if $data71 != @1@ then
return -1
endi
if $data80 != @21-11-11 09:00:08.000@ then
return -1
endi
if $data81 != @1@ then
return -1
endi
if $data90 != @21-11-11 09:00:09.000@ then
return -1
endi
if $data91 != @1@ then
return -1
endi
print execute sql select length(cast(interp(c2) as binary(20))) stba every(1s) group by tbname;
sql_error select length(cast(interp(c2) as binary(20))) stba every(1s) group by tbname;
print execute sql select length(cast(elapsed(ts) as binary(20))) from tba1;
sql select length(cast(elapsed(ts) as binary(20))) from tba1;
if $data00 != @12@ then
return -1
endi
print execute sql select length(cast(rate(c2) as binary(20))) from tba1;
sql select length(cast(rate(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select length(cast(irate(c2) as binary(20))) from tba1;
sql select length(cast(irate(c2) as binary(20))) from tba1;
if $data00 != @8@ then
return -1
endi
print execute sql select length(cast(first(c2) as binary(20))) from tba1;
sql select length(cast(first(c2) as binary(20))) from tba1;
if $data00 != @1@ then
return -1
endi
print execute sql select length(cast(last(c2) as binary(20))) from tba1;
sql select length(cast(last(c2) as binary(20))) from tba1;
if $data00 != @1@ then
return -1
endi
print execute sql select length(cast(last_row(c2) as binary(20))) from tba1;
sql select length(cast(last_row(c2) as binary(20))) from tba1;
if $data00 != @1@ then
return -1
endi
print execute sql select length(cast(top(c2, 1) as binary(20))) from tba1;
sql_error select length(cast(top(c2, 1) as binary(20))) from tba1;
print execute sql select length(cast(bottom(c2, 1) as binary(20))) from tba1;
sql_error select length(cast(bottom(c2, 1) as binary(20))) from tba1;
print execute sql select length(cast(leastsquares(c2, 1, 1) as binary(20))) from tba1;
sql_error select length(cast(leastsquares(c2, 1, 1) as binary(20))) from tba1;
print execute sql select length(cast(derivative(c2, 1s, 0) as binary(20))) from tba1;
sql_error select length(cast(derivative(c2, 1s, 0) as binary(20))) from tba1;
print execute sql select length(cast(diff(c2) as binary(20))) from tba1;
sql_error select length(cast(diff(c2) as binary(20))) from tba1;
print execute sql select length(cast(csum(c2) as binary(20))) from tba1;
sql_error select length(cast(csum(c2) as binary(20))) from tba1;
print execute sql select length(cast(mavg(c2,2) as binary(20))) from tba1;
sql_error select length(cast(mavg(c2,2) as binary(20))) from tba1;
print execute sql select length(cast(sample(c2,2) as binary(20))) from tba1;
sql_error select length(cast(sample(c2,2) as binary(20))) from tba1;
print execute sql select length(cast(_block_dist() as binary(20))) from tba1;
sql_error select length(cast(_block_dist() as binary(20))) from tba1;
...@@ -47,6 +47,8 @@ sql insert into tbn values ('2021-11-11 09:00:06',true,7,7,7,7,7,7,"777","7777", ...@@ -47,6 +47,8 @@ sql insert into tbn values ('2021-11-11 09:00:06',true,7,7,7,7,7,7,"777","7777",
run general/compute/str_concat.sim run general/compute/str_concat.sim
run general/compute/str_concat_ws.sim run general/compute/str_concat_ws.sim
run general/compute/str_length.sim
run general/compute/str_char_length.sim
sql create table stba (ts timestamp, c1 bool, c2 tinyint, c3 smallint, c4 int, c5 bigint, c6 float, c7 double, c8 binary(10), c9 nchar(10), c10 tinyint unsigned, c11 smallint unsigned, c12 int unsigned, c13 bigint unsigned, c14 binary(2), c15 nchar(3)) TAGS(t1 int, t2 binary(10), t3 double); sql create table stba (ts timestamp, c1 bool, c2 tinyint, c3 smallint, c4 int, c5 bigint, c6 float, c7 double, c8 binary(10), c9 nchar(10), c10 tinyint unsigned, c11 smallint unsigned, c12 int unsigned, c13 bigint unsigned, c14 binary(2), c15 nchar(3)) TAGS(t1 int, t2 binary(10), t3 double);
...@@ -101,5 +103,9 @@ run general/compute/str_concat.sim ...@@ -101,5 +103,9 @@ run general/compute/str_concat.sim
run general/compute/str_concat2.sim run general/compute/str_concat2.sim
run general/compute/str_concat_ws.sim run general/compute/str_concat_ws.sim
run general/compute/str_concat_ws2.sim run general/compute/str_concat_ws2.sim
run general/compute/str_length.sim
run general/compute/str_length2.sim
run general/compute/str_char_length.sim
run general/compute/str_char_length2.sim
#system sh/exec.sh -n dnode1 -s stop -x SIGINT #system sh/exec.sh -n dnode1 -s stop -x SIGINT
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册