RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Description : Pass an ordered list as input to UDF |
| 3 | * : and return that ordered list. |
| 4 | * Expected Res : Success |
| 5 | * Date : 4th September 2012 |
| 6 | */ |
| 7 | |
| 8 | drop dataverse test if exists; |
| 9 | create dataverse test; |
| 10 | |
RamanGrover29@gmail.com | 2471039 | 2012-11-11 18:57:42 +0000 | [diff] [blame] | 11 | write output to nc1:"rttest/user-defined-functions_udf01.adm"; |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 12 | |
| 13 | create function test.echo($list){ |
| 14 | $list |
| 15 | } |
| 16 | |
| 17 | for $a in [1,2,3,4,5,6,7,8,9,10] |
| 18 | return test.echo($a) |