blob: 201ab6e5e7815702031da98f5677c876dc3e938e [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
2 * Description : Create primary & secondary indexes & query Metadata dataset to verify.
3 * Expected Res : Success
4 * Date : 15 Sep 2012
5 */
6
7drop dataverse testdv if exists;
8create dataverse testdv;
9
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000010write output to nc1:"mdtest/basic_meta05.adm";
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000011
12create type testdv.testtype as open {
13id : int32,
14name : string
15}
16
ramangrover29669d8f62013-02-11 06:03:32 +000017create dataset testdv.t1(testtype) primary key id;
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000018
19create index idx1 on testdv.t1(name);
20
21for $l in dataset('Metadata.Index')
22where $l.DataverseName='testdv'
23return $l
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000024
25drop dataverse testdv;