[ 
https://issues.apache.org/jira/browse/FLINK-20977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17269921#comment-17269921
 ] 

孙铮 commented on FLINK-20977:
----------------------------

[~jark] I created a `mod` table and executed it successfully with the 
"desc`mod`" command.
So I compared "use `mod`" and "desc `mod` two commands, and tracked the code 
execution flow of the two commands and found Is in the 
org.apache.flink.table.client.cli.SqlCommandParser#parseByRegexMatching 
 cmd.hasRegexPattern() method to judge regular expression
org.apache.flink.table.client.cli.SqlCommandParser.SqlCommand#USE
org.apache.flink.table.client.cli.SqlCommandParser.SqlCommand#DESC

> can not use `use` command to switch database 
> ---------------------------------------------
>
>                 Key: FLINK-20977
>                 URL: https://issues.apache.org/jira/browse/FLINK-20977
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>    Affects Versions: 1.12.0
>            Reporter: Jun Zhang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.13.0
>
>
> I have a database which name is mod, when I use `use mod` to switch to the 
> db,the system throw an exception, I surround it with backticks ,it is still 
> not well



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to