[
https://issues.apache.org/jira/browse/HIVE-12259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14977937#comment-14977937
]
Lefty Leverenz commented on HIVE-12259:
---------------------------------------
Does this bug fix need to be documented in the wiki?
* [HiveServer2 Clients -- Beeline Commands |
https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-BeelineCommands]
> Command containing semicolon is broken in Beeline
> -------------------------------------------------
>
> Key: HIVE-12259
> URL: https://issues.apache.org/jira/browse/HIVE-12259
> Project: Hive
> Issue Type: Bug
> Components: Beeline
> Reporter: Chaoyu Tang
> Assignee: Chaoyu Tang
> Attachments: HIVE-12259.patch
>
>
> The Beeline command (!cmd) containing semicolon is broken.
> For example:
> !connect jdbc:hive2://localhost:10001/default;principal=hive/[email protected]
> is broken because the included ";" makes it not to run with
> execCommandWithPrefix as a whole command.
> {code}
> if (line.startsWith(COMMAND_PREFIX) && !line.contains(";")) {
> // handle the case "!cmd" for beeline
> return execCommandWithPrefix(line);
> } else {
> return commands.sql(line, getOpts().getEntireLineAsCommand());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)