RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Description : Create UDF that returns string |
| 3 | * : compute the string lenght of the string |
| 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_udf16.adm"; |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 12 | |
| 13 | create function test.fn02(){ |
| 14 | "Welcome to the world of Asterix" |
| 15 | } |
| 16 | |
| 17 | let $str := test.fn02() |
| 18 | return string-length($str) |