blob: 28a37946fcc4828c39db821c395a0ce71087a7b7 [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
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000010write output to nc1:"mdtest/basic_meta09.adm";
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000011
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
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000032
33drop dataverse test;