zml1206 commented on code in PR #5666:
URL: https://github.com/apache/kyuubi/pull/5666#discussion_r1390673214
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/serde/uriExtractors.scala:
##########
@@ -93,3 +95,11 @@ class PartitionLocsSeqURIExtractor extends URIExtractor {
v1.asInstanceOf[Seq[(_, Option[String])]].flatMap(_._2).map(Uri)
}
}
+
+class IdentifierURIExtractor extends URIExtractor {
+ override def apply(v1: AnyRef): Seq[Uri] = v1 match {
+ case identifier: Identifier if isPathIdentifier(identifier.name()) =>
Review Comment:
I don't think so. If do like you say, `create delta_ns.table1_delta` will
throw `user [someone] does not have [create] privilege on
[delta_ns/table1_delta], [write] privilege on [[table1_delta, table1_delta/]]`.
--
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]