blob: 26556e03766f99a10aefae4bf7da77e089017467 [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
2 * Decription : Create UDF to query two different datasets that are in tow different dataverses.
3 * Expected Res : Success
4 * Date : Sep 7 2012
5 */
6
7// this test currently gives ParseException
8
9drop dataverse test if exists;
10drop dataverse fest if exists;
11
12create dataverse test;
13create dataverse fest;
14
15create type test.testtype as open {
16id : int32
17}
18
19create type fest.testtype as open {
20id : int32
21}
22
23create dataset test.t1(testtype) partitioned by key id;
24create dataset fest.t1(testtype) partitioned by key id;
25
26insert into dataset test.t1({"id":24});
27insert into dataset test.t1({"id":23});
28insert into dataset test.t1({"id":21});
29insert into dataset test.t1({"id":44});
30insert into dataset test.t1({"id":64});
31
32insert into dataset fest.t1({"id":24});
33insert into dataset fest.t1({"id":23});
34insert into dataset fest.t1({"id":21});
35insert into dataset fest.t1({"id":44});
36insert into dataset fest.t1({"id":64});
37
38create function fest.f1(){
39for $m in dataset('test.t1')
40for $l in dataset('fest.t1')
41order by $m,$l
42return { "l":$l,"m":$m }
43}
44
45write output to nc1:"rttest/cross-dataverse_cross-dv17.adm";
46
47fest.f1();
48