eric-maynard commented on code in PR #1112:
URL: https://github.com/apache/polaris/pull/1112#discussion_r1980754888


##########
polaris-core/src/main/java/org/apache/polaris/core/persistence/PolarisMetaStoreManager.java:
##########
@@ -285,7 +285,11 @@ DropEntityResult dropEntityIfExists(
    * @param entityId the id of the entity to load
    */
   @Nonnull
-  EntityResult loadEntity(@Nonnull PolarisCallContext callCtx, long 
entityCatalogId, long entityId);
+  EntityResult loadEntity(
+      @Nonnull PolarisCallContext callCtx,
+      long entityCatalogId,
+      long entityId,
+      @Nonnull PolarisEntityType entityType);

Review Comment:
   Is there a situation where we _wouldn't_ want to enforce that entityType 
matches, even if the impl technically could look up an entity without it?
   
   It seems to me that entityCatalogId is very similar -- if entity ID is 
unique across catalogs, technically you could look up the entity without 
entityCatalogId. But we still enforce it right?



-- 
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: issues-unsubscr...@polaris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to