blob: 2aee200dbc9ed31b923c173c99038637177e5aae [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
2 * Description : Create user defined functions using fully qualified names
3 * : verify their details in Function dataset in Metadata dataverse.
4 * Expected Res :
5 * Date : 30th Aug 2012
6 */
7
8drop dataverse testdv1 if exists;
9create dataverse testdv1;
10
11write output to nc1:"rttest/cross-dataverse_cross-dv15.adm";
12
13// UDF with no inputs
14create function testdv1.fun01(){
15100
16}
17
18// UDF with one input
19create function testdv1.fun02($a){
20"function 02"
21}
22
23// UDF with two inputs
24create function testdv1.fun03($b,$c){
25$b+$c
26}
27
28for $l in dataset('Metadata.Function')
29where $l.DataverseName='testdv1'
30return $l;