roryqi opened a new pull request, #12533:
URL: https://github.com/apache/gravitino/pull/12533
### What changes were proposed in this pull request?
- Add `GroupOwnerRelPO` for mapping group owners with their metadata object
IDs.
- Add batch group-owner queries to the owner mapper and SQL provider.
- Return both user and group owners from `OwnerMetaService#batchGetOwner`.
- Add tests for group-only and mixed user/group ownership.
### Why are the changes needed?
The batch owner lookup currently omits group-owned metadata objects, while
the single-object owner lookup supports both user and group owners. This causes
incomplete owner results for batch callers.
Fix: #12532
### Does this PR introduce _any_ user-facing change?
Yes. Batch owner lookup now returns group owners in addition to user owners.
No public API signature is changed.
### How was this patch tested?
```shell
./gradlew :core:spotlessApply :core:test \
--tests
org.apache.gravitino.storage.relational.service.TestOwnerMetaService \
-PskipITs -PskipDockerTests=false
```
All 39 tests passed on H2, MySQL, and PostgreSQL.
--
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]