blob: 56c6c7a08f3ef30b48ed00346e08a2321c28ce30 [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
ramangrover29669d8f62013-02-11 06:03:32 +000016create dataset test.t1(testtype) primary key id;
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000017
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;