blob: 1de7ac557f9330d97b278eb22943765f36cae9c3 [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
17create dataset test.dst01(testtype) partitioned by key id;
18
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;