stevenzwu commented on code in PR #15831:
URL: https://github.com/apache/iceberg/pull/15831#discussion_r3031282434
##########
core/src/main/java/org/apache/iceberg/rest/ErrorHandlers.java:
##########
@@ -213,6 +217,27 @@ public void accept(ErrorResponse error) {
}
}
+ /** Relation level error handler (for universal load that resolves to table
or view). */
+ private static class RelationErrorHandler extends DefaultErrorHandler {
+ private static final ErrorHandler INSTANCE = new RelationErrorHandler();
+
+ @Override
+ public void accept(ErrorResponse error) {
+ switch (error.code()) {
+ case 404:
+ if
(NoSuchNamespaceException.class.getSimpleName().equals(error.type())) {
Review Comment:
this is the existing code pattern that we probably want to follow here.
--
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]