RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 7 | // This drop index test is broken for now. |
| 8 | |
| 9 | drop dataverse test if exists; |
| 10 | create dataverse test; |
| 11 | |
| 12 | write output to nc1:"rttest/meta12.adm"; |
| 13 | |
| 14 | create type test.testtype as open { |
| 15 | id : int32, |
| 16 | name : string |
| 17 | } |
| 18 | |
| 19 | create dataset test.dst01(testtype) partitioned by key id; |
| 20 | |
| 21 | create index idx1 on test.dst01(name); |
| 22 | |
| 23 | drop index test.dst01.idx1; |
| 24 | |
| 25 | for $l in dataset('Metadata.Index') |
| 26 | where $l.DatasetName = 'dst01' |
| 27 | return $l |