blob: b25f028b3f15287f06fcf5084a5b49063492449d [file] [log] [blame]
khfaraaz82@gmail.com7be92462013-02-09 02:19:25 +00001/*
2 * Description : Drop empty secondary index.
3 * Expected Result : Success
4 * Date : 8th Feb 2013
5 *
6 */
7
8drop dataverse test if exists;
9create dataverse test;
10use dataverse test;
11
12create type TestType as open {
13id : int32,
14name : string,
15locn : point,
16zip : string
17}
18
khfaraaz82@gmail.comebffdad2013-02-09 03:58:36 +000019write output to nc1:"rttest/dml_drop-empty-secondary-indexes.adm";
20
ramangrover29669d8f62013-02-11 06:03:32 +000021create dataset t1(TestType) primary key id;
khfaraaz82@gmail.com7be92462013-02-09 02:19:25 +000022
23create index rtree_index_point on t1(locn) type rtree;
24
25create index keyWD_indx on t1(name) type keyword;
26
27create index secndIndx on t1(zip);
28
29drop index t1.rtree_index_point;
30
31drop index t1.keyWD_indx;
32
33drop index t1.secndIndx;
34
35for $l in dataset('Metadata.Index')
36where $l.IsPrimary=false
37return $l;