sririshindra commented on code in PR #3719:
URL: https://github.com/apache/polaris/pull/3719#discussion_r2897369785


##########
runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java:
##########
@@ -287,25 +287,75 @@ protected Map<String, String> properties() {
 
   @Override
   public Table registerTable(TableIdentifier identifier, String 
metadataFileLocation) {
+    return registerTable(identifier, metadataFileLocation, false);
+  }
+
+  /**
+   * Register a table with optional overwrite semantics.
+   *
+   * <p>When {@code overwrite} is false (the default) this behaves like a 
normal register and will
+   * fail if the table already exists. When {@code overwrite} is true and the 
named table already
+   * exists, this method updates the table's stored metadata-location to point 
at the provided
+   * metadata file. The overwrite path performs additional validation to 
ensure the supplied
+   * metadata file and its location are consistent with the table's resolved 
storage configuration.
+   *
+   * @param identifier the table identifier
+   * @param metadataFileLocation the metadata file location
+   * @param overwrite if true, update existing table metadata; if false, throw 
exception if table
+   *     exists
+   * @return the registered table
+   */
+  public Table registerTable(

Review Comment:
   Published https://github.com/apache/iceberg/pull/15525 in Iceberg repo.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to