[
https://issues.apache.org/jira/browse/HIVE-23243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17087852#comment-17087852
]
David Mollitor commented on HIVE-23243:
---------------------------------------
[~mgergely] OK, I looked into this.
The ORM library that HMS uses is DataNucleus and for this kind of use, it:
bq. follows the rules of java.lang.String.matches
So it actually accepts a Java Regex string. I think your code should call
{{.toString()}} on the {{Pattern}} being created and pass that to
{{getDatabasesByPattern}}
> Accept SQL type like pattern for Show Databases
> -----------------------------------------------
>
> Key: HIVE-23243
> URL: https://issues.apache.org/jira/browse/HIVE-23243
> Project: Hive
> Issue Type: Bug
> Components: Hive
> Reporter: Miklos Gergely
> Assignee: Miklos Gergely
> Priority: Minor
> Attachments: HIVE-23243.01.patch
>
>
> Show Databases pattern accepts java like pattern with * and ., use SQL like
> instead with % and _.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)