AngersZhuuuu commented on code in PR #5645:
URL: https://github.com/apache/kyuubi/pull/5645#discussion_r1385895639
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/serde/uriExtractors.scala:
##########
@@ -33,7 +33,11 @@ object URIExtractor {
*/
class StringURIExtractor extends URIExtractor {
override def apply(v1: AnyRef): Seq[Uri] = {
- Seq(Uri(v1.asInstanceOf[String]))
+ v1 match {
+ case str: String => Seq(Uri(str))
+ case Some(str: String) => Seq(Uri(str))
Review Comment:
Done
##########
extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtensionSuite.scala:
##########
@@ -1155,4 +1156,25 @@ class HiveCatalogRangerSparkExtensionSuite extends
RangerSparkExtensionSuite {
}
}
}
+
+ test("CreateDatabaseCommand/AlterDatabaseSetLocationCommand") {
+ assume(SPARK_RUNTIME_VERSION <= "3.2")
Review Comment:
Done
--
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]