-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core: Add missing REST endpoint definitions #11756
Core: Add missing REST endpoint definitions #11756
Conversation
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @ajreid21 for adding these. Just a few minor comments
e4e3935
to
24e94d6
Compare
@@ -138,11 +138,13 @@ public class RESTSessionCatalog extends BaseViewSessionCatalog | |||
ImmutableSet.<Endpoint>builder() | |||
.add(Endpoint.V1_LIST_NAMESPACES) | |||
.add(Endpoint.V1_LOAD_NAMESPACE) | |||
.add(Endpoint.V1_NAMESPACE_EXISTS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also added namespace exists to the default list
@nastra I addressed the comments and added the new checks if you want to take another look. Thanks. |
Noticed there were some definitions missing in the REST Endpoint class (most notably entries for tableExists and the new loadCredentials endpoints).
Added the following definitions in that class:
Added the tableExists endpoint to the list of default endpoints.
It doesn't appear that the REST catalog impl actually uses the namespaceExists or viewExists endpoints and instead falls back to the session and view session catalog impls which loads the namespace/view to check if exists -- is there a reason the REST catalog impl doesn't use the exists endpoints?