RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Description : Create two UDFs in two different dataverses |
| 3 | * : Bind the results returned by each UDF to a variable and return those variables |
| 4 | * Expected Res : Success |
| 5 | * Date : 31st Aug 2012 |
| 6 | */ |
| 7 | |
| 8 | drop dataverse testdv1 if exists; |
| 9 | drop dataverse testdv2 if exists; |
| 10 | create dataverse testdv1; |
| 11 | create dataverse testdv2; |
| 12 | |
| 13 | write output to nc1:"rttest/cross-dataverse_cross-dv12.adm"; |
| 14 | |
| 15 | create function testdv1.fun01(){ |
| 16 | "function 01" |
| 17 | } |
| 18 | |
| 19 | create function testdv2.fun02(){ |
| 20 | "function 02" |
| 21 | } |
| 22 | |
| 23 | let $a := testdv1.fun01() |
| 24 | let $b := testdv2.fun02() |
| 25 | return {"fun-01":$a,"fun-02":$b} |