ajantha-bhat commented on code in PR #8909:
URL: https://github.com/apache/iceberg/pull/8909#discussion_r1400110138


##########
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:
   While committing the Table, we found that view existing with the same key. 
Hence we are failing the commit. 
   
   Other catalogs behaves like this. Common testcase in `ViewCatalogTests` will 
fail If I remove this check. 



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