/* | |
* Description : Pass an ordered list as input to UDF and return the zeroth element of that list. | |
* Expected Res : Success | |
* Date : 4th September 2012 | |
*/ | |
drop dataverse test if exists; | |
create dataverse test; | |
write output to nc1:"rttest/cross-dataverse_udf02.adm"; | |
create function test.getFirst($list){ | |
$list[0] | |
} | |
for $a in [[1,2],[3,4]] | |
return test.getFirst($a) |