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/08/01 02:17:46 UTC

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

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


##########
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:
   But It may have a time gap, when there are consecutive queries. And it doesn't seem guaranteed to be a transactional operation



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