-
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
[#6030] fix(CLI): Fix Setting the same tags multiple times in the Gravitino CLi gives unexpected output #6037
Conversation
…he Gravitino CLi gives unexpected output Fix the error information when Setting the same tags multiple times in the Gravitino CLi.
Hi @justinmclean @tengqm , could you please review this PR when you have time? I’d really appreciate your feedback. |
clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
Outdated
Show resolved
Hide resolved
Some more thoughts on this ...
|
Tags already act like this:
I'm unaware of the exact naming character limitations or maximum number of tags, but I assume users will develop their own conventions. |
…he Gravitino CLi gives unexpected output fix some error
Hi @justinmclean @shaofengshi , I’ve finished updating the code. Please take a look at the PR again when you have time. |
clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
Outdated
Show resolved
Hide resolved
…he Gravitino CLi gives unexpected output fix some error, remove long error name and fix the error info.
…he Gravitino CLi gives unexpected output fix some error.
Hi @justinmclean @tengqm ,I’ve finished updating the code. Please take a look at the PR again when you have time. |
There is a small formatting issue that's causing Spotless to fail. You'll can run |
…he Gravitino CLi gives unexpected output fix some error.
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.
LGTM
…he Gravitino CLi gives unexpected output (apache#6037) ### What changes were proposed in this pull request? Fix the error information when Setting the same tags multiple times in the Gravitino CLi. now a hint information is given when the tag is set repeatedly ### Why are the changes needed? Fix: apache#6030 ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? ```bash gcli tag set --metalake demo_metalake --name Hive_catalog --tag tagB tagC # Hive_catalog now tagged with tagB,tagC gcli tag set --metalake demo_metalake --name Hive_catalog --tag tagB tagC # [tagB, tagC] are(is) already associated with Hive_catalog ```
What changes were proposed in this pull request?
Fix the error information when Setting the same tags multiple times in the Gravitino CLi. now a hint information is given when the tag is set repeatedly
Why are the changes needed?
Fix: #6030
Does this PR introduce any user-facing change?
NO
How was this patch tested?