| * Description : Drop secondary index. |
| * Expected Result : Success |
| drop dataverse test if exists; |
| create type Schema as closed { |
| create dataset t1(Schema) partitioned by key unique2; |
| using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter" |
| (("path"="nc1://data/wisc/onektup.adm"),("format"="delimited-text"),("delimiter"="|")) pre-sorted; |
| // create secondary indexes |
| create index idx_t1_str1 on t1(stringu1); |
| create index idx_t1_unique1 on t1(unique1); |
| // drop secondary indexes |
| drop index t1.idx_t1_str1; |
| drop index t1.idx_t1_unique1; |
| write output to nc1:"rttest/dml_drop-index.adm"; |
| where $a.unique1 > 10 and $a.stringu1="DGAAAAXXXXXXXXXXXXXXXXXXX" |