List<Path> partPaths = null;
try {
ms.openTransaction();
// drop the underlying index table
Index index = get_index_by_name(dbName, tblName, indexName);
if (index == null) {
throw new NoSuchObjectException(indexName + " doesn't exist");
}
ms.dropIndex(dbName, tblName, indexName);
String idxTblName = index.getIndexTableName();
if (idxTblName != null) {
Table tbl = null;
tbl = this.get_table(dbName, idxTblName);
if (tbl.getSd() == null) {
throw new MetaException("Table metadata is corrupted");