RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Description : Create internal dataset, insert data and query metadata Dataset to verify entries for that dataset. |
| 3 | * Expected Res : Success |
| 4 | * Date : Sep 17 2012 |
| 5 | */ |
| 6 | |
| 7 | drop dataverse test if exists; |
| 8 | create dataverse test; |
| 9 | |
| 10 | write output to nc1:"rttest/meta09.adm"; |
| 11 | |
| 12 | create type test.testtype as open { |
| 13 | id:int32 |
| 14 | } |
| 15 | |
| 16 | create dataset test.t1(testtype) partitioned by key id; |
| 17 | |
| 18 | insert into dataset test.t1({"id":123}); |
| 19 | insert into dataset test.t1({"id":133}); |
| 20 | insert into dataset test.t1({"id":223}); |
| 21 | insert into dataset test.t1({"id":127}); |
| 22 | insert into dataset test.t1({"id":423}); |
| 23 | insert into dataset test.t1({"id":183}); |
| 24 | insert into dataset test.t1({"id":193}); |
| 25 | insert into dataset test.t1({"id":129}); |
| 26 | insert into dataset test.t1({"id":373}); |
| 27 | insert into dataset test.t1({"id":282}); |
| 28 | |
| 29 | for $l in dataset('Metadata.Dataset') |
| 30 | where $l.DataverseName='test' and $l.DatasetName='t1' |
| 31 | return $l |