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