Skip to content
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

Merged
merged 5 commits into from
Jan 2, 2025
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.apache.gravitino.exceptions.NoSuchMetalakeException;
import org.apache.gravitino.exceptions.NoSuchSchemaException;
import org.apache.gravitino.exceptions.NoSuchTableException;
import org.apache.gravitino.exceptions.TagAlreadyAssociatedException;
import org.apache.gravitino.rel.Table;

public class TagEntity extends Command {
Expand Down Expand Up @@ -94,6 +95,8 @@ public void handle() {
exitWithError(ErrorMessages.UNKNOWN_SCHEMA);
} catch (NoSuchTableException err) {
exitWithError(ErrorMessages.UNKNOWN_TABLE);
} catch (TagAlreadyAssociatedException err) {
exitWithError("Tags are already associated with " + name.getName());
} catch (Exception exp) {
exitWithError(exp.getMessage());
}
Expand Down
Loading