You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/03/31 07:48:19 UTC
[GitHub] [iceberg] kbendick commented on a change in pull request #4448: Core: Add in RenameTableRequest for the RESTCatalog
kbendick commented on a change in pull request #4448:
URL: https://github.com/apache/iceberg/pull/4448#discussion_r839285426
##########
File path: core/src/main/java/org/apache/iceberg/rest/RESTCatalog.java
##########
@@ -113,7 +114,14 @@ public boolean dropTable(TableIdentifier identifier, boolean purge) {
@Override
public void renameTable(TableIdentifier from, TableIdentifier to) {
+ RenameTableRequest request = RenameTableRequest.builder()
+ .withSource(from)
+ .withDestination(to)
+ .build();
+ // for now, ignore the response because there is no way to return it.
+ // also, the spec does not define a response beyond simply `ok`.
+ client.post("v1/tables/rename", request, null, ErrorHandlers.tableErrorHandler());
Review comment:
Currently, there is no corresponding response type for the `renameTable` operation in the spec.
Do we want to add one? It would be ignored, but we might still want to provide ourselves something to work with.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org