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


##########
service/common/src/main/java/org/apache/polaris/service/admin/PolarisAdminService.java:
##########
@@ -1495,10 +1490,10 @@ public boolean grantPrivilegeOnTableToRole(
     PolarisAuthorizableOperation op = 
PolarisAuthorizableOperation.ADD_TABLE_GRANT_TO_CATALOG_ROLE;
 
     authorizeGrantOnTableLikeOperationOrThrow(
-        op, catalogName, PolarisEntitySubType.ICEBERG_TABLE, identifier, 
catalogRoleName);
+        op, catalogName, PolarisEntitySubType.ANY_SUBTYPE, identifier, 
catalogRoleName);
 
     return grantPrivilegeOnTableLikeToRole(
-        catalogName, catalogRoleName, identifier, 
PolarisEntitySubType.ICEBERG_TABLE, privilege);
+        catalogName, catalogRoleName, identifier, 
PolarisEntitySubType.ANY_SUBTYPE, privilege);

Review Comment:
   Also, note that there is test coverage for these error messages in Iceberg 
(for Iceberg tables and views)



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