Skip to content

Commit

Permalink
[Bug] Use kyuubi beeline connect kyuubi server error if url contains …
Browse files Browse the repository at this point in the history
…'--' string
  • Loading branch information
axiangzheng committed Jul 4, 2024
1 parent f1bb408 commit 6677497
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ protected void processOption(String arg, ListIterator iter) throws ParseExceptio
if (!commands.isEmpty()) {
for (String command : commands) {
debug(loc("executing-command", command));
if (!dispatch(command)) {
if (!removeCommentsDispatch(command)) {
code++;
}
}
Expand Down Expand Up @@ -282,9 +282,8 @@ int runInit() {
return executionResult;
}

// see HIVE-15820: comment at the head of beeline -e
@Override
boolean dispatch(String line) {
// see HIVE-15820: comment at the head of beeline -e only dispatch commands
boolean removeCommentsDispatch(String line) {
return super.dispatch(isPythonMode() ? line : HiveStringUtils.removeComments(line));
}

Expand Down

0 comments on commit 6677497

Please sign in to comment.