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