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/07/31 16:38:05 UTC

[GitHub] [iceberg] rdblue commented on a diff in pull request #5327: Support resetTable procedure

rdblue commented on code in PR #5327:
URL: https://github.com/apache/iceberg/pull/5327#discussion_r934011112


##########
api/src/main/java/org/apache/iceberg/catalog/Catalog.java:
##########
@@ -347,6 +347,17 @@ default Table registerTable(TableIdentifier identifier, String metadataFileLocat
     throw new UnsupportedOperationException("Registering tables is not supported");
   }
 
+  /**
+   * Reset the table with a meta file.
+   *
+   * @param identifier a table identifier
+   * @param metadataFileLocation the location of a metadata file
+   * @return a Table instance
+   */
+  default Table resetTable(TableIdentifier identifier, String metadataFileLocation) {

Review Comment:
   Do we really need to add another method to `Catalog`? What is the difference between this and `dropTable` followed by `registerTable`?



-- 
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