Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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.
if (line.startsWith(COMMAND_PREFIX) && !line.contains(";")) { // handle the case "!cmd" for beeline return execCommandWithPrefix(line); } else { return commands.sql(line, getOpts().getEntireLineAsCommand()); }
Attachments
Attachments
Issue Links
- is broken by
-
HIVE-11640 Shell command doesn't work for new CLI[Beeline-cli branch]
- Resolved
- is related to
-
HIVE-11100 Beeline should escape semi-colon in queries
- Closed