Github user hyunsik commented on a diff in the pull request:
https://github.com/apache/tajo/pull/630#discussion_r35872100
--- Diff:
tajo-catalog/tajo-catalog-server/src/main/java/org/apache/tajo/catalog/CatalogServer.java
---
@@ -1065,6 +1068,47 @@ public GetTablePartitionsResponse
getAllPartitions(RpcController controller, Nul
}
@Override
+ public ReturnState addPartitions(RpcController controller,
AddPartitionsProto request)
+ throws ServiceException {
+
+ TableIdentifierProto identifier = request.getTableIdentifier();
+ String databaseName = identifier.getDatabaseName();
+ String tableName = identifier.getTableName();
+
+
+ if (metaDictionary.isSystemDatabase(databaseName)) {
+ throw new ServiceException(databaseName + " is a system database.
It does not contain any partitioned tables.");
--- End diff --
Don't throw any exception. You can return proper ReturnState.
---
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.
---