jarredhj0214 commented on PR #15134: URL: https://github.com/apache/gravitino/pull/15134#issuecomment-7032044453
@yuqi1129 Thanks for checking the interface boundary and running the suites. I agree that the general method on `EntityStore` is too broad and introduces the `long`/`Long` conflict. I prepared a local revision using the table-specific alternative: - Remove `EntityStore.getEntityId()` and introduce an optional `SupportsTableIdLookup` capability. Authorization keeps the full-read path for stores without it. - Keep the existing entity-cache lock and warm-cache lookup, but route cold reads through the current store's backend. `RelationalBackend` provides a full-read default; JDBC overrides it to avoid the column snapshot. - Cover an injected offline-migration backend, real cache invalidation, and a class implementing both `EntityStore` and the existing `EntityIdResolver`. I did not use `EntityIdService` directly because its globally initialized resolver delegates to relational metadata services rather than the backend owned by the selected store. The table-specific path preserves that backend boundary without changing the existing resolver contract. All 279 selected core/H2 and server-common authorization tests passed, with no skips. Module Spotless checks also passed; Docker-backed tests were not run. These changes are still local and have not been pushed to this PR yet. For the SQL projection suggestion, this revision still reuses the metadata-only query, including its version join. I would prefer to keep this patch focused on avoiding column snapshots and addressing the interface/backend issues, and handle an ID-only projection separately if that scope is acceptable. -- 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]
