roryqi commented on code in PR #9800:
URL: https://github.com/apache/gravitino/pull/9800#discussion_r2772846874


##########
core/src/main/java/org/apache/gravitino/storage/relational/JDBCBackend.java:
##########
@@ -587,11 +588,18 @@ public <E extends Entity & HasIdentifier> List<E> 
listEntitiesByRelation(
       throws IOException {
     switch (relType) {
       case OWNER_REL:
-        List<E> list = Lists.newArrayList();
-        OwnerMetaService.getInstance()
-            .getOwner(nameIdentifier, identType)
-            .ifPresent(e -> list.add((E) e));
-        return list;
+        // Query entities by owner
+        if (identType == EntityType.USER || identType == EntityType.GROUP) {

Review Comment:
   OwnerManager don't the call the method.



-- 
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]

Reply via email to