blob: 0d3bd53429c6368b816286bf546e67d230798e6a [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
2 * Description : Create two dataverses and one dataset in each of the dataverse
3 * : insert data and query using the datasets using fully qualified names and return results.
4 * Expected Res : Success
5 * Date : Sep 7th 2012
6 * Ignored : Not part of the current test build because of Issue 199
7 */
8
9
10drop dataverse test if exists;
11drop dataverse fest if exists;
12
13create dataverse test;
14create dataverse fest;
15
16create type test.testtype as open {
17id : int32
18}
19
20create type fest.testtype as open {
21id : int32
22}
23
24create dataset test.t1(testtype) partitioned by key id;
25create dataset fest.t1(testtype) partitioned by key id;
26
27insert into dataset test.t1({"id":24});
28insert into dataset test.t1({"id":23});
29insert into dataset test.t1({"id":21});
30insert into dataset test.t1({"id":44});
31insert into dataset test.t1({"id":64});
32
33insert into dataset fest.t1({"id":24});
34insert into dataset fest.t1({"id":23});
35insert into dataset fest.t1({"id":21});
36insert into dataset fest.t1({"id":44});
37insert into dataset fest.t1({"id":64});
38
39let $a := (for $l in dataset('fest.t1') return $l)
40let $b := (for $m in dataset('test.t1') return $m)
41return {"a":$a,"b":$b}