RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Description : Create UDF and invoke it from another UDF and |
| 3 | * : child UDF returns a string to the parent. |
| 4 | * Expected Res : Success |
| 5 | * Date : Sep 5th 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_udf17.adm"; |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 12 | |
| 13 | create function test.parent(){ |
| 14 | test.child() |
| 15 | } |
| 16 | |
| 17 | create function test.child() { |
| 18 | "This data is from the child function" |
| 19 | } |
| 20 | |
| 21 | let $str := test.parent() |
| 22 | return $str |