提交 66af9be4 编写于 作者: S shenglian zhou

enhance/modify test case

上级 58707a4c
......@@ -89,6 +89,14 @@ endi
if $data00 != 2457.000000000 then
return -1
endi
print execute sql select sin(log(avg(c1),sum(c2))+3)%4 from $stb
sql select sin(log(avg(c1),sum(c2))+3)%4 from $stb
if $rows != 1 then
return -1
endi
if $data00 != -0.265074286 then
return -1
endi
print execute sql select select log(pow(length(concat('3','4')),2),c2) from $stb
sql select log(pow(length(concat('3','4')),2),c2) from $stb
......@@ -156,6 +164,42 @@ endi
if $data90 != 3.000000000 then
return -1
endi
$tb0 = $tbPrefix . 0
$tb1 = $tbPrefix . 1
print execute sql select sin(pow(c1,log(c2,2))+pow(c2,2)) as val from $tb0 union all select pow(c4,2)+tan(sin(c5)/cos(c6)) as val from $tb1
sql select sin(pow(c1,log(c2,2))+pow(c2,2)) as val from $tb0 union all select pow(c4,2)+tan(sin(c5)/cos(c6)) as val from $tb1
print [ $data00 , $data10 , $data20 , $data30 , $data40 , $data50 , $data60 , $data70 , $data80 , $data90 ]
if $data00 != @-nan@ then
return -1
endi
if $data10 != 0.909297427 then
return -1
endi
if $data20 != -0.279415498 then
return -1
endi
if $data30 != 0.843325058 then
return -1
endi
if $data40 != 0.551426681 then
return -1
endi
if $data50 != -0.840606612 then
return -1
endi
if $data60 != 0.436161076 then
return -1
endi
if $data70 != 0.897498185 then
return -1
endi
if $data80 != -0.885952778 then
return -1
endi
if $data90 != 0.429470715 then
return -1
endi
print ============== invalid expressions
sql_error select agg(c1)+c2 from $stb
sql_error select agg(c1+2) from $stb
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册