nastra commented on code in PR #11756:
URL: https://github.com/apache/iceberg/pull/11756#discussion_r1881884126
##########
core/src/main/java/org/apache/iceberg/rest/Endpoint.java:
##########
@@ -46,6 +46,8 @@ public class Endpoint {
Endpoint.create("POST", ResourcePaths.V1_NAMESPACE_PROPERTIES);
public static final Endpoint V1_DELETE_NAMESPACE =
Endpoint.create("DELETE", ResourcePaths.V1_NAMESPACE);
+ public static final Endpoint V1_NAMESPACE_EXISTS =
+ Endpoint.create("HEAD", ResourcePaths.V1_NAMESPACE);
Review Comment:
I've opened https://github.com/apache/iceberg/pull/11761 to actually do a
HEAD request when checking for namespace existence. Depending on which PR lands
first, we need to make sure to call `Endpoint.check(endpoints, Endpoint.
V1_NAMESPACE_EXISTS);` when doing the actual HEAD request
--
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]