jarodwen | cbbab14 | 2013-02-01 07:56:46 +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 | |||||
9 | // this test resturns NPE:Issue 166 | ||||
10 | |||||
11 | drop dataverse test if exists; | ||||
12 | create dataverse test; | ||||
13 | |||||
14 | write output to nc1:"rttest/user-defined-functions_udf15.adm"; | ||||
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 |