sunyuhan1998 opened a new issue, #10759:
URL: https://github.com/apache/gravitino/issues/10759
### Describe the feature
**Describe the feature**
The Python client's `GenericFileset` currently only implements `Fileset`
and `SupportsCredentials`, but does not implement `SupportsTags`. This means
Python users cannot perform tag operations (list, get, associate, remove) on
`Fileset` objects through the client API, and must call the REST API directly.
The Java client's `GenericFileset` already implements the full
`SupportsTags` interface:
class `GenericFilerest` implements `Fileset`, `SupportsTags`,
`SupportsRoles`, `SupportsCredentials`, `SupportsPolicies`
**Motivation**
Without this, Python users need to manually construct REST calls to
associate tags with filesets:
Current workaround:
```
url = f"{server}/api/metalakes/{metalake}/objects/fileset/{fullName}/tags"
response = requests.post(url, json={"tagsToAdd": [...], "tagsToRemove":
[...]})
```
With `SupportsTags` implemented, the API becomes:
```
# Proposed
fileset.associate_tags(["pii", "sensitive"], [])
tags = fileset.list_tags()
```
I will submit a PR to implement this feature later.
### Motivation
_No response_
### Describe the solution
_No response_
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]