mchades opened a new issue, #7454:
URL: https://github.com/apache/gravitino/issues/7454
### What would you like to be improved?
For the current tag API, listing metadata objects for a group of tags
requires iteratively calling `tag.associatedObjects().objects()`, which is both
inconvenient for users and costly in terms of performance. It would be better
to add a batch API for tag operations.
### How should we improve?
we can add a batch API for such usage:
```
// for java
GravitinoClient client = ...
String[] tagNames = {"tag1", "tagN"}
MetadataObject[] objects = client.listMetadataObjectsForTags(tagNames);
// for rest
curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \
http://localhost:8090/api/metalakes/test/tags/objects?tags=tag1,tag2,tag3
// response example:
{
"code": 0,
"metadataObjects": [
{
"type": "CATALOG",
"fullName": "my_catalog"
},
{
"type": "SCHEMA",
"fullName": "my_catalog.my_schema"
},
{
"type": "TABLE",
"fullName": "my_catalog.my_schema.my_table"
}
]
}
```
--
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]