/* | |
* Description : Create UDF that returns a range | |
* Expected Res : Success | |
* Date : Sep 5 2012 | |
* Ignored : Not part of current test build because of Issue 201 | |
*/ | |
// Returns java.lang.ClassCastException | |
drop dataverse test if exists; | |
create dataverse test; | |
write output to nc1:"rttest/cross-dataverse_udf24.adm"; | |
create function test.myRangeFn($n) | |
{ | |
range(1,$n) | |
} | |
for $i in test.myRangeFn(100) | |
return $i |