fivetran-kostaszoumpatianos commented on code in PR #1772:
URL: https://github.com/apache/polaris/pull/1772#discussion_r2122841717


##########
service/common/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java:
##########
@@ -212,6 +212,14 @@ public IcebergCatalog(
     this.polarisEventListener = polarisEventListener;
   }
 
+  @Override
+  public boolean tableExists(TableIdentifier identifier) {
+    if (isValidIdentifier(identifier)) {
+      return newTableOps(identifier).current() != null;

Review Comment:
   `loadTable(...)` currently does exactly the [same thing 
internally](https://github.com/apache/iceberg/blob/ee1dea0a4995c61c48f2df889a77b9a19ffff02d/core/src/main/java/org/apache/iceberg/BaseMetastoreCatalog.java#L48).
   Once we optimize that and table metadata are promoted to object storage we 
could adapt this method as well.
   
   



-- 
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-unsubscr...@polaris.apache.org

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

Reply via email to