Pooja Nilangekar has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/10876


Change subject: IMPALA-6223: Gracefully handle malformed 'with' queries in 
impala-shell
......................................................................

IMPALA-6223: Gracefully handle malformed 'with' queries in impala-shell

The change handles the exception thrown by shlex while parsing a
malformed 'with' query. The shell redirects the error message to
stderr and returns CmdStatus.ERROR. This ensures that the shell
does not crash due to malformed requests.

This patch was tested by adding to both commandline and interactive
shell tests.

Change-Id: Ibb1e9238ac67b8ad3b2caa1748a18b04f384802d
---
M shell/impala_shell.py
M tests/shell/test_shell_commandline.py
M tests/shell/test_shell_interactive.py
3 files changed, 24 insertions(+), 7 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/76/10876/2
--
To view, visit http://gerrit.cloudera.org:8080/10876
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibb1e9238ac67b8ad3b2caa1748a18b04f384802d
Gerrit-Change-Number: 10876
Gerrit-PatchSet: 2
Gerrit-Owner: Pooja Nilangekar <pooja.nilange...@cloudera.com>

Reply via email to