AngersZhuuuu commented on code in PR #5645:
URL: https://github.com/apache/kyuubi/pull/5645#discussion_r1387422582
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/serde/uriExtractors.scala:
##########
@@ -49,12 +53,18 @@ class CatalogStorageFormatURIExtractor extends URIExtractor
{
}
}
-class OptionsUriExtractor extends URIExtractor {
+class PropertiesPathUriExtractor extends URIExtractor {
override def apply(v1: AnyRef): Seq[Uri] = {
v1.asInstanceOf[Map[String, String]].get("path").map(Uri).toSeq
Review Comment:
> This behavior actually differs from spark who will use a case-insensitive
map.
But spark for such command all use lower case
<img width="1677" alt="截屏2023-11-09 上午10 48 11"
src="https://github.com/apache/kyuubi/assets/46485123/9b349ea8-4764-4101-bcd1-97d23941fd3e">
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/serde/uriExtractors.scala:
##########
@@ -49,12 +53,18 @@ class CatalogStorageFormatURIExtractor extends URIExtractor
{
}
}
-class OptionsUriExtractor extends URIExtractor {
+class PropertiesPathUriExtractor extends URIExtractor {
override def apply(v1: AnyRef): Seq[Uri] = {
v1.asInstanceOf[Map[String, String]].get("path").map(Uri).toSeq
Review Comment:
> This behavior actually differs from spark who will use a case-insensitive
map.
But spark for such command all use lower case
<img width="1677" alt="截屏2023-11-09 上午10 48 11"
src="https://github.com/apache/kyuubi/assets/46485123/9b349ea8-4764-4101-bcd1-97d23941fd3e">
--
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]