cxzl25 commented on code in PR #5128:
URL: https://github.com/apache/kyuubi/pull/5128#discussion_r1282612935
##########
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/util/SparkCatalogUtils.scala:
##########
@@ -137,7 +137,7 @@ object SparkCatalogUtils extends Logging {
listAllNamespaces(catalog).filter { ns =>
val quoted = ns.map(quoteIfNeeded).mkString(".")
schemaPattern.r.pattern.matcher(quoted).matches()
- }.distinct
+ }.map(_.toList).toList.distinct.map(_.toArray).toArray
Review Comment:
```scala
scala> Array(Array("default"),Array("default")).distinct
res0: Array[Array[String]] = Array(Array(default), Array(default))
```
```scala
scala>
Array(Array("default"),Array("default")).map(_.toList).toList.distinct.map(_.toArray).toArray
res1: Array[Array[String]] = Array(Array(default))
```
--
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]