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 | |||||
11 | write output to nc1:"rttest/cross-dataverse_udf16.adm"; | ||||
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) |