RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Description : Create UDF that returns a heterogeneous ordered list |
| 3 | * : invoke the UDF in the FOR expression of FLWOR |
| 4 | * Expected Res : Success |
| 5 | * Date : Sep 5th 2012 |
| 6 | * Ignored : Not part of current tests because of Issue 200 |
| 7 | */ |
| 8 | |
RamanGrover29@gmail.com | 2471039 | 2012-11-11 18:57:42 +0000 | [diff] [blame] | 9 | // this test resturns NPE:Issue 166 |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 10 | |
| 11 | drop dataverse test if exists; |
| 12 | create dataverse test; |
| 13 | |
RamanGrover29@gmail.com | 2471039 | 2012-11-11 18:57:42 +0000 | [diff] [blame] | 14 | write output to nc1:"rttest/user-defined-functions_udf15.adm"; |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 15 | |
| 16 | create function test.OList2(){ |
| 17 | [[1,2,3,4,5,6,7,8,9,10],["a","b","c","d","e","f","g","h","y"]] |
| 18 | } |
| 19 | |
| 20 | for $a in test.OList2() |
| 21 | return $a |