AngersZhuuuu commented on code in PR #5639:
URL: https://github.com/apache/kyuubi/pull/5639#discussion_r1384423611
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/ranger/AccessType.scala:
##########
@@ -28,16 +28,18 @@ object AccessType extends Enumeration {
val NONE, CREATE, ALTER, DROP, SELECT, UPDATE, USE, READ, WRITE, ALL, ADMIN,
INDEX = Value
def apply(obj: PrivilegeObject, opType: OperationType, isInput: Boolean):
AccessType = {
+ if (obj.privilegeObjectType == DFS_URI || obj.privilegeObjectType ==
LOCAL_URI) {
+ // This is equivalent to ObjectType.URI
+ return if (isInput) READ else WRITE
+ }
Review Comment:
Nice catch!
--
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]