public BoolProto detachTable(RpcController controller,
StringProto tableNameProto)
throws ServiceException {
String tableName = tableNameProto.getValue();
if (!catalog.existsTable(tableName)) {
throw new NoSuchTableException(tableName);
}
catalog.deleteTable(tableName);
LOG.info("Table " + tableName + " is detached");