Github user jihoonson commented on a diff in the pull request:
https://github.com/apache/tajo/pull/734#discussion_r39047174
--- Diff:
tajo-client/src/main/java/org/apache/tajo/client/CatalogAdminClientImpl.java ---
@@ -241,6 +241,22 @@ public TableDesc getTableDesc(final String tableName)
throws UndefinedTableExcep
}
@Override
+ public List<PartitionDescProto> getAllPartitions(final String tableName)
{
+ final BlockingInterface stub = conn.getTMStub();
+
+ GetPartitionsResponse response;
+ try {
+ response = stub.getPartitionsByTableName(null,
+ conn.getSessionedString(tableName));
+ } catch (ServiceException e) {
+ throw new RuntimeException(e);
+ }
+
+ ensureOk(response.getState());
--- End diff --
```UndefinedTableException``` and ```UndefinedDatabaseException``` must be
handled.
---
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.
---