RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 7 | drop dataverse test if exists; |
| 8 | create dataverse test; |
| 9 | |
| 10 | write output to nc1:"rttest/cross-dataverse_udf04.adm"; |
| 11 | |
| 12 | create function test.echo($list){ |
| 13 | $list |
| 14 | } |
| 15 | |
| 16 | for $a in [{"name":"John","age":45,"id":123},{"name":"Jim","age":55,"id":103},{"name":"Bill","age":35,"id":125}] |
| 17 | return test.echo($a) |