Peng-Lei commented on a change in pull request #34232:
URL: https://github.com/apache/spark/pull/34232#discussion_r727865160



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/connector/catalog/CatalogManager.scala
##########
@@ -129,6 +131,16 @@ class CatalogManager(
     }
   }
 
+  def listCatalogs(pattern: Option[String]): Seq[String] = synchronized {
+    val row = new ArrayBuffer[String]
+    catalogs.keys.toSeq.sorted.map { name =>
+      if (pattern.forall(StringUtils.filterPattern(Seq(name), _).nonEmpty)) {

Review comment:
       Updated. @cloud-fan 




-- 
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]

Reply via email to