if (linkedMetadataManager.existsDatabase(dbName)) { return TableResponse.newBuilder() .setState(OK) .setTable(linkedMetadataManager.getTable(dbName, "", tbName).getProto()) .build(); return TableResponse.newBuilder().setState(returnError(t)).build(); try { return TableResponse.newBuilder() .setState(OK) .setTable(metaDictionary.getTableDesc(tbName)) .build(); } catch (UndefinedTableException e) { return TableResponse.newBuilder() .setState(errUndefinedTable(tbName)) .build(); try { return TableResponse.newBuilder() .setState(OK) .setTable(store.getTable(dbName, tbName)) .build(); .setState(returnError(t)) .build();
if (linkedMetadataManager.existsDatabase(dbName)) { return TableResponse.newBuilder() .setState(OK) .setTable(linkedMetadataManager.getTable(dbName, "", tbName).getProto()) .build(); return TableResponse.newBuilder().setState(returnError(t)).build(); try { return TableResponse.newBuilder() .setState(OK) .setTable(metaDictionary.getTableDesc(tbName)) .build(); } catch (UndefinedTableException e) { return TableResponse.newBuilder() .setState(errUndefinedTable(tbName)) .build(); try { return TableResponse.newBuilder() .setState(OK) .setTable(store.getTable(dbName, tbName)) .build(); .setState(returnError(t)) .build();
.setState(errInvalidRpcCall("Table name is required")) .build(); .setState(OK) .setTable(catalog.getTableDesc(databaseName, tableName).getProto()) .build(); } else { return TableResponse.newBuilder() .setState(errUndefinedTable(request.getValue())) .build(); printStackTraceIfError(LOG, t); return TableResponse.newBuilder() .setState(returnError(t)) .build();
.setState(errInvalidRpcCall("Table name is required")) .build(); .setState(OK) .setTable(catalog.getTableDesc(databaseName, tableName).getProto()) .build(); } else { return TableResponse.newBuilder() .setState(errUndefinedTable(request.getValue())) .build(); printStackTraceIfError(LOG, t); return TableResponse.newBuilder() .setState(returnError(t)) .build();