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


##########
core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java:
##########
@@ -959,6 +959,16 @@ public void testLoadMissingTable() {
         .hasMessageStartingWith("Table does not exist: ns.tbl");
   }
 
+  @Test
+  public void testLoadTableWithMissingMetadatafile() {
+    C catalog = catalog();
+
+    assertThat(catalog.tableExists(TBL)).as("Table should not 
exist").isFalse();
+    assertThatThrownBy(() -> catalog.loadTable(TBL))
+        .isInstanceOf(NoSuchTableException.class)

Review Comment:
   the test doesn't reproduce the issue you're trying to repro and it passes 
without applying the fix that is being proposed



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