/* | |
* Description : Create UDF and invoke it in limit clause | |
* Expected Res : Success | |
* Date : Sep 5th 2012 | |
*/ | |
drop dataverse test if exists; | |
create dataverse test; | |
write output to nc1:"rttest/user-defined-functions_udf23.adm"; | |
create function test.numRows(){ | |
6 | |
} | |
for $l in dataset('Metadata.Dataset') | |
limit test.numRows() | |
return $l |