yunchipang commented on code in PR #7476:
URL: https://github.com/apache/gravitino/pull/7476#discussion_r2213935387
##########
core/src/main/java/org/apache/gravitino/tag/TagManager.java:
##########
@@ -226,6 +227,41 @@ public MetadataObject[] listMetadataObjectsForTag(String
metalake, String name)
});
}
+ public MetadataObject[] listMetadataObjectsForTags(String metalake, String[]
names)
+ throws NoSuchTagException {
+ if (names == null || names.length == 0) {
+ return new MetadataObject[0];
+ }
+ NameIdentifier[] tagIds =
+ Arrays.stream(names)
+ .map(name -> NameIdentifierUtil.ofTag(metalake, name))
+ .toArray(NameIdentifier[]::new);
+ return TreeLockUtils.doWithTreeLock(
+ NameIdentifier.of(metalake),
Review Comment:
I was assuming that the parent level of a tag is the metalake? linking prev
discussion:
https://github.com/apache/gravitino/pull/7476#discussion_r2189064750. correct
me if i'm wrong🙏🏻
--
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]