deferredRebuild, inputFormat, outputFormat, serde, storageHandler, location,
indexProps, tableProps, serdeProps, collItemDelim, fieldDelim, fieldEscape, lineDelim,
mapKeyDelim, indexComment);
// Retrieve and validate the index
Index index = null;
try {
index = hm.getIndex(tableName, indexName);
assertNotNull("Unable to fetch index", index);
index.validate();
assertEquals("Index names don't match for index: " + indexName, indexName,
index.getIndexName());
assertEquals("Table names don't match for index: " + indexName, tableName,
index.getOrigTableName());
assertEquals("Index table names didn't match for index: " + indexName, indexTableName,
index.getIndexTableName());
assertEquals("Index handler classes didn't match for index: " + indexName,
indexHandlerClass, index.getIndexHandlerClass());
assertEquals("Deferred rebuild didn't match for index: " + indexName, deferredRebuild,
index.isDeferredRebuild());
} catch (HiveException e) {
System.err.println(StringUtils.stringifyException(e));
assertTrue("Unable to fetch index correctly: " + indexName, false);
}