-
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
[#6148] improve(CLI): Refactor model commands in Gavitino CLI #6162
Conversation
Refactor model commands and Base class in Gavitino CLI.
Hi @justinmclean @tengqm , could you please review this PR when you have time? I’d really appreciate your feedback. |
this.metalake = name.getMetalakeName(); | ||
this.catalog = name.getCatalogName(); | ||
this.schema = name.getSchemaName(); | ||
this.model = name.getModelName(); |
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 is likely to cause an issue with the list command.
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.
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.
Even so, you should not call it if it is not needed. It will put out an error message saying the name is malformed - we don't want this as it will confuse the user. I'd remove the final and set it after the list command call.
clients/cli/src/main/java/org/apache/gravitino/cli/ModelCommandHandler.java
Outdated
Show resolved
Hide resolved
Hi @justinmclean , I’ve finished updating the code. Please take a look at the PR again when you have time. |
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 for another contribution.
…pache#6162) ### What changes were proposed in this pull request? Refactor model commands and Base class in Gavitino CLI. ### Why are the changes needed? Fix: apache#6148 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? local test
What changes were proposed in this pull request?
Refactor model commands and Base class in Gavitino CLI.
Why are the changes needed?
Fix: #6148
Does this PR introduce any user-facing change?
No
How was this patch tested?
local test