-
Notifications
You must be signed in to change notification settings - Fork 383
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
[#5872] feat(client): Add model management Java client API #6003
Conversation
4c36e5b
to
8fb1a67
Compare
} | ||
|
||
@Override | ||
public boolean deleteModel(NameIdentifier ident) { |
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.
When we have register...
, I'm expecting a deregister...
rather than a delete...
.
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 refer this from other system's design (https://docs.unitycatalog.io/usage/models/#deleting-registered-models-and-model-versions), I think it is fine and easy to understand.
Preconditions.checkArgument(StringUtils.isNotBlank(name), "name must not be blank"); | ||
Preconditions.checkArgument(type != null, "type must not be null"); | ||
Preconditions.checkArgument(StringUtils.isNotBlank(provider), "provider must not be blank"); | ||
Preconditions.checkArgument(audit != null, "audit must not be null"); |
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.
This sounds like a little bit too strict?
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.
They are all the necessary variables, it cannot work if one is missing.
clients/client-java/src/main/java/org/apache/gravitino/client/GenericModelVersion.java
Outdated
Show resolved
Hide resolved
2e36c06
to
08b0f59
Compare
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.
lgtm
What changes were proposed in this pull request?
This PR adds the Java client API for model management.
Why are the changes needed?
This is a part of work of model management.
Fix: #5872
Does this PR introduce any user-facing change?
No.
How was this patch tested?
UT added.