nastra commented on code in PR #8909:
URL: https://github.com/apache/iceberg/pull/8909#discussion_r1400147481


##########
nessie/src/main/java/org/apache/iceberg/nessie/NessieTableOperations.java:
##########
@@ -104,12 +96,18 @@ protected void doRefresh() {
             content
                 .unwrap(IcebergTable.class)
                 .orElseThrow(
-                    () ->
-                        new IllegalStateException(
+                    () -> {
+                      if (content instanceof IcebergView) {
+                        return new AlreadyExistsException(
+                            "View with same name already exists: %s", key);

Review Comment:
   yes this is correct behavior here IMO



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

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


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

Reply via email to