blob: 4404707bce02616505cbedd50b2fcc9238a324da [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
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
7drop dataverse test if exists;
8create dataverse test;
9
10write output to nc1:"rttest/meta09.adm";
11
12create type test.testtype as open {
13id:int32
14}
15
16create dataset test.t1(testtype) partitioned by key id;
17
18insert into dataset test.t1({"id":123});
19insert into dataset test.t1({"id":133});
20insert into dataset test.t1({"id":223});
21insert into dataset test.t1({"id":127});
22insert into dataset test.t1({"id":423});
23insert into dataset test.t1({"id":183});
24insert into dataset test.t1({"id":193});
25insert into dataset test.t1({"id":129});
26insert into dataset test.t1({"id":373});
27insert into dataset test.t1({"id":282});
28
29for $l in dataset('Metadata.Dataset')
30where $l.DataverseName='test' and $l.DatasetName='t1'
31return $l