panbingkun commented on code in PR #43751: URL: https://github.com/apache/spark/pull/43751#discussion_r1505582663
########## sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/ShowNamespacesExec.scala: ########## @@ -53,7 +53,7 @@ case class ShowNamespacesExec( val rows = new ArrayBuffer[InternalRow]() namespaceNames.map { ns => - if (pattern.map(StringUtils.filterPattern(Seq(ns), _).nonEmpty).getOrElse(true)) { + if (pattern.forall(StringUtils.filterPattern(Seq(ns), _).nonEmpty)) { Review Comment: This is only a correction made based on the syntax prompted by the `IDE`. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org