diff --git a/core/src/main/java/org/apache/gravitino/storage/relational/service/GroupMetaService.java b/core/src/main/java/org/apache/gravitino/storage/relational/service/GroupMetaService.java index 7c585904a4f..0b251696b72 100644 --- a/core/src/main/java/org/apache/gravitino/storage/relational/service/GroupMetaService.java +++ b/core/src/main/java/org/apache/gravitino/storage/relational/service/GroupMetaService.java @@ -259,7 +259,7 @@ public List listGroupsByNamespace(Namespace namespace){ List groupPOS = SessionUtils.getWithoutCommit( GroupMetaMapper.class, mapper->mapper.selectGroupsMetaByMetalakeId(metalakeId) ); - return groupPOS.stream().map(po->POConverters.fromGroupPO(po,AuthorizationUtils.ofUserNamespace(metalakeName))).collect( + return groupPOS.stream().map(po->POConverters.fromGroupPO(po,Collections.emptyList(),AuthorizationUtils.ofUserNamespace(metalakeName))).collect( Collectors.toList()); } diff --git a/server/src/test/java/org/apache/gravitino/server/web/rest/TestGroupOperations.java b/server/src/test/java/org/apache/gravitino/server/web/rest/TestGroupOperations.java index a9e4bd2b8eb..b3af1478ddc 100644 --- a/server/src/test/java/org/apache/gravitino/server/web/rest/TestGroupOperations.java +++ b/server/src/test/java/org/apache/gravitino/server/web/rest/TestGroupOperations.java @@ -38,9 +38,7 @@ import org.apache.commons.lang3.reflect.FieldUtils; import org.apache.gravitino.Config; import org.apache.gravitino.GravitinoEnv; -import org.apache.gravitino.Namespace; import org.apache.gravitino.authorization.AccessControlManager; -import org.apache.gravitino.authorization.AuthorizationUtils; import org.apache.gravitino.authorization.Group; import org.apache.gravitino.dto.authorization.GroupDTO; import org.apache.gravitino.dto.requests.GroupAddRequest;