yaooqinn commented on code in PR #5581:
URL: https://github.com/apache/kyuubi/pull/5581#discussion_r1382764650
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/serde/uriExtractors.scala:
##########
@@ -47,3 +48,9 @@ class OptionsUriExtractor extends URIExtractor {
v1.asInstanceOf[Map[String, String]].get("path").map(Uri).toSeq
}
}
+
+class BaseRelationFileIndexURIExtractor extends URIExtractor {
+ override def apply(v1: AnyRef): Seq[Uri] = {
+
v1.asInstanceOf[HadoopFsRelation].location.rootPaths.map(_.toString).map(Uri)
Review Comment:
```scala
v1 match {
case h: HadoopFsRelation => h.location.rootPaths.map(_.toString).map(Uri)
case _ => Nil
}
```
--
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]