pvary commented on a change in pull request #1495:
URL: https://github.com/apache/iceberg/pull/1495#discussion_r497030090



##########
File path: core/src/main/java/org/apache/iceberg/BaseMetastoreCatalog.java
##########
@@ -215,8 +216,15 @@ public TableBuilder withProperty(String key, String value) 
{
     @Override
     public Table create() {
       TableOperations ops = newTableOps(identifier);
-      if (ops.current() != null) {
-        throw new AlreadyExistsException("Table already exists: %s", 
identifier);
+      try {
+        if (ops.current() != null) {
+          throw new AlreadyExistsException("Table already exists: %s", 
identifier);
+        }
+      } catch (NoSuchIcebergTableException ne) {

Review comment:
       Removed. With the new HMS table property this is not needed anymore.




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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to