deniskuzZ commented on code in PR #6022:
URL: https://github.com/apache/hive/pull/6022#discussion_r2272580960


##########
iceberg/iceberg-catalog/src/main/java/org/apache/iceberg/hive/HiveCatalog.java:
##########
@@ -408,23 +410,46 @@ private void validateTableIsIcebergTableOrView(
    */
   @Override
   public boolean tableExists(TableIdentifier identifier) {
+    return Objects.nonNull(fetchTable(identifier));
+  }
+
+  /**
+   * Check whether table exists and return its current metadata location.
+   *
+   * <p>Note: If a hive table with the same identifier exists in catalog, this 
method will return
+   * {@code null}.
+   *
+   * @param identifier a table identifier
+   * @return the location of the table if it exists, null otherwise
+   */
+  public String getTableMetadataLocation(TableIdentifier identifier) {

Review Comment:
   please do not change anything in iceberg-catalog or submit an iceberg PR



-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to