Github user yhuai commented on a diff in the pull request:
https://github.com/apache/spark/pull/12104#discussion_r58416223
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/InMemoryCatalog.scala
---
@@ -48,7 +48,7 @@ class InMemoryCatalog extends ExternalCatalog {
private val catalog = new scala.collection.mutable.HashMap[String,
DatabaseDesc]
private def filterPattern(names: Seq[String], pattern: String):
Seq[String] = {
- val regex = pattern.replaceAll("\\*", ".*").r
+ val regex = pattern.replaceAll("\\.\\*", "\\*").replaceAll("\\*",
"\\.\\*").r
--- End diff --
Regarding this change, I think it depends on what is the wildcard for any
character(s). If it is `*` (following Hive), then, we should keep the original
line.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]