AngersZhuuuu commented on code in PR #5448:
URL: https://github.com/apache/kyuubi/pull/5448#discussion_r1371101160
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/ObjectType.scala:
##########
@@ -23,13 +23,14 @@ object ObjectType extends Enumeration {
type ObjectType = Value
- val DATABASE, TABLE, VIEW, COLUMN, FUNCTION = Value
+ val DATABASE, TABLE, VIEW, COLUMN, FUNCTION, INDEX = Value
def apply(obj: PrivilegeObject, opType: OperationType): ObjectType = {
obj.privilegeObjectType match {
case PrivilegeObjectType.DATABASE => DATABASE
case PrivilegeObjectType.TABLE_OR_VIEW if obj.columns.nonEmpty => COLUMN
case PrivilegeObjectType.TABLE_OR_VIEW if
opType.toString.contains("VIEW") => VIEW
+ case PrivilegeObjectType.TABLE_OR_VIEW if
opType.toString.contains("INDEX") => INDEX
Review Comment:
Done
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]