AngersZhuuuu commented on code in PR #5581:
URL: https://github.com/apache/kyuubi/pull/5581#discussion_r1379567477
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/serde/pathExtractors.scala:
##########
@@ -33,3 +35,9 @@ class StringURIExtractor extends URIExtractor {
Some(Uri(v1.asInstanceOf[String]))
}
}
+
+class HadoopFsRelationFileIndexURIExtractor extends URIExtractor {
+ override def apply(v1: AnyRef): Option[Uri] = {
+
Some(Uri(v1.asInstanceOf[HadoopFsRelation].location.rootPaths.map(_.toString).mkString(",")))
Review Comment:
> do we support comma-separated path string?
After change to `Seq[Uri]`, here won't have such issue now.
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/serde/pathExtractors.scala:
##########
@@ -33,3 +35,9 @@ class StringURIExtractor extends URIExtractor {
Some(Uri(v1.asInstanceOf[String]))
}
}
+
+class HadoopFsRelationFileIndexURIExtractor extends URIExtractor {
+ override def apply(v1: AnyRef): Option[Uri] = {
+
Some(Uri(v1.asInstanceOf[HadoopFsRelation].location.rootPaths.map(_.toString).mkString(",")))
Review Comment:
> do we support comma-separated path string?
After change to `Seq[Uri]`, here won't have such issue now.
--
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]