“ca8b7a2760be58670ad9388fddc99a1f4bb0d88a”上不存在“projects/fescar-group”
提交 59165255 编写于 作者: S slzhou

remove null value processing from udf.sim test case

上级 623a71d3
...@@ -64,35 +64,35 @@ if $data00 != 1.414213562 then ...@@ -64,35 +64,35 @@ if $data00 != 1.414213562 then
return -1 return -1
endi endi
sql insert into t2 values(now+2s, 1, null)(now+3s, null, 2); #sql insert into t2 values(now+2s, 1, null)(now+3s, null, 2);
sql select udf1(f1, f2) from t2; #sql select udf1(f1, f2) from t2;
print $rows , $data00 , $data10 , $data20 , $data30 #print $rows , $data00 , $data10 , $data20 , $data30
if $rows != 4 then #if $rows != 4 then
return -1 # return -1
endi #endi
if $data00 != 88 then #if $data00 != 88 then
return -1 # return -1
endi #endi
if $data10 != 88 then #if $data10 != 88 then
return -1 # return -1
endi #endi
#
if $data20 != NULL then #if $data20 != NULL then
return -1 # return -1
endi #endi
#
if $data30 != NULL then #if $data30 != NULL then
return -1 # return -1
endi #endi
#
sql select udf2(f1, f2) from t2; #sql select udf2(f1, f2) from t2;
print $rows, $data00 #print $rows, $data00
if $rows != 1 then #if $rows != 1 then
return -1 # return -1
endi #endi
if $data00 != 2.645751311 then #if $data00 != 2.645751311 then
return -1 # return -1
endi #endi
sql drop function udf1; sql drop function udf1;
sql show functions; sql show functions;
if $rows != 1 then if $rows != 1 then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册