Github user hyunsik commented on a diff in the pull request:
https://github.com/apache/tajo/pull/662#discussion_r36056184
--- Diff:
tajo-client/src/main/java/org/apache/tajo/client/CatalogAdminClientImpl.java ---
@@ -200,12 +231,17 @@ public TableDesc getTableDesc(final String tableName)
throws SQLException {
throw new RuntimeException(e);
}
- throwIfError(res.getState());
+ if (isThisError(res.getState(), Errors.ResultCode.UNDEFINED_TABLE)) {
+ throw new UndefinedTableException(res.getState());
+ }
+
+ ensureOk(res.getState());
return CatalogUtil.newTableDesc(res.getTable());
}
@Override
- public List<FunctionDescProto> getFunctions(final String functionName)
throws SQLException {
+ public List<FunctionDescProto> getFunctions(final String functionName)
+ throws AmbiguousFunctionException, UndefinedFunctionException {
--- End diff --
Fixed too.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---