blob: bd6544ff5e908867742937e7d57c1e65bc46dc5d [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
2 * Description : Pass as input an ordered list of Records as input to UDF and return the list.
3 * Expected Res : Success
4 * Date : 4th September 2012
5 */
6
7drop dataverse test if exists;
8create dataverse test;
9
RamanGrover29@gmail.com24710392012-11-11 18:57:42 +000010write output to nc1:"rttest/user-defined-functions_udf04.adm";
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000011
12create function test.echo($list){
13$list
14}
15
16for $a in [{"name":"John","age":45,"id":123},{"name":"Jim","age":55,"id":103},{"name":"Bill","age":35,"id":125}]
17return test.echo($a)