You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Chaoyu Tang (JIRA)" <ji...@apache.org> on 2015/10/25 01:08:27 UTC
[jira] [Updated] (HIVE-12259) Command containing semicolon is
broken in Beeline
[ https://issues.apache.org/jira/browse/HIVE-12259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chaoyu Tang updated HIVE-12259:
-------------------------------
Attachment: HIVE-12259.patch
1. The SQLLine commands (!cmd) in Beeline containing ";" are broken.
2. The connection URLs having ";" included do not work either for the same reason.
> 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/xyz.com@realm.com
> 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)