nastra commented on PR #7283:
URL: https://github.com/apache/iceberg/pull/7283#issuecomment-1498781321

   Does that mean we could now add the following test to verify that 
`NoSuchNamespaceException` is thrown?
   ```
     @Test
     public void testTableCreationWithoutNamespace() {
       Assume.assumeTrue(requiresNamespaceCreate());
   
       Assertions.assertThatThrownBy(
               () ->
                   catalog()
                       .buildTable(TableIdentifier.of("non-existing-namespace", 
"table"), SCHEMA)
                       .create())
           .isInstanceOf(NoSuchNamespaceException.class)
           .hasMessage("...");
     }
   ```


-- 
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: [email protected]

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