RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 10 | drop dataverse test if exists; |
| 11 | drop dataverse fest if exists; |
| 12 | |
| 13 | create dataverse test; |
| 14 | create dataverse fest; |
| 15 | |
| 16 | create type test.testtype as open { |
| 17 | id : int32 |
| 18 | } |
| 19 | |
| 20 | create type fest.testtype as open { |
| 21 | id : int32 |
| 22 | } |
| 23 | |
| 24 | create dataset test.t1(testtype) partitioned by key id; |
| 25 | create dataset fest.t1(testtype) partitioned by key id; |
| 26 | |
| 27 | insert into dataset test.t1({"id":24}); |
| 28 | insert into dataset test.t1({"id":23}); |
| 29 | insert into dataset test.t1({"id":21}); |
| 30 | insert into dataset test.t1({"id":44}); |
| 31 | insert into dataset test.t1({"id":64}); |
| 32 | |
| 33 | insert into dataset fest.t1({"id":24}); |
| 34 | insert into dataset fest.t1({"id":23}); |
| 35 | insert into dataset fest.t1({"id":21}); |
| 36 | insert into dataset fest.t1({"id":44}); |
| 37 | insert into dataset fest.t1({"id":64}); |
| 38 | |
| 39 | let $a := (for $l in dataset('fest.t1') return $l) |
| 40 | let $b := (for $m in dataset('test.t1') return $m) |
| 41 | return {"a":$a,"b":$b} |