This is an automated email from the ASF dual-hosted git repository.
shaofengshi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 1f0088884 [Minor] Add support for topic and fileset in set owner in
Gravitino CLI (#5870)
1f0088884 is described below
commit 1f00888849651c3cd023cff9ac4611d4ad784e92
Author: Justin Mclean <[email protected]>
AuthorDate: Tue Dec 17 16:34:51 2024 +1100
[Minor] Add support for topic and fileset in set owner in Gravitino CLI
(#5870)
### What changes were proposed in this pull request?
Add support for topic and fileset in set owner in Gravitino CLI
### Why are the changes needed?
these entities can also have owners.
Fix: # N/A
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Tested locally
---
.../cli/src/main/java/org/apache/gravitino/cli/commands/SetOwner.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/SetOwner.java
b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/SetOwner.java
index b10d7eea6..be9f1af54 100644
--- a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/SetOwner.java
+++ b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/SetOwner.java
@@ -71,6 +71,10 @@ public class SetOwner extends Command {
this.entityType = MetadataObject.Type.TABLE;
} else if (entityType.equals(CommandEntities.COLUMN)) {
this.entityType = MetadataObject.Type.COLUMN;
+ } else if (entityType.equals(CommandEntities.TOPIC)) {
+ this.entityType = MetadataObject.Type.TOPIC;
+ } else if (entityType.equals(CommandEntities.FILESET)) {
+ this.entityType = MetadataObject.Type.FILESET;
} else {
this.entityType = null;
}