You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "jerqi (via GitHub)" <gi...@apache.org> on 2026/01/22 12:19:37 UTC

Re: [PR] [#9744] feat(authz): Add new view privileges [gravitino]

jerqi commented on code in PR #9778:
URL: https://github.com/apache/gravitino/pull/9778#discussion_r2716673281


##########
api/src/main/java/org/apache/gravitino/authorization/Privilege.java:
##########
@@ -141,7 +141,11 @@ enum Name {
     /** The privilege to use a job template */
     USE_JOB_TEMPLATE(0L, 1L << 26),
     /** The privilege to run a job */
-    RUN_JOB(0L, 1L << 27);
+    RUN_JOB(0L, 1L << 27),
+    /** The privilege to create a view. */
+    CREATE_VIEW(0L, 1L << 28),
+    /** The privilege to select data from a view. */
+    SELECT_VIEW(0L, 1L << 29);

Review Comment:
   We can a new privilege `SELECT` that we can select table and view.



-- 
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: commits-unsubscribe@gravitino.apache.org

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