Sahil Takiar has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/16222


Change subject: IMPALA-9953: Shell should continue fetching even when 0 rows 
are returned
......................................................................

IMPALA-9953: Shell should continue fetching even when 0 rows are returned

The Impala shell stops fetching rows if it receives a batch that
contains 0 rows. This is incorrect because a batch with 0 rows can be
returned if the fetch request hits a timeout. Instead, the shell should
rely on the value of has_rows / hasMoreRows to determine when to stop
issuing fetch requests.

Tests:
* Added a regression test to test_shell_commandline.py
* Ran all shell tests

Change-Id: I5f8527aea9e433f8cf426435c0ba41355bbf9d88
---
M shell/impala_shell.py
M tests/shell/test_shell_commandline.py
2 files changed, 17 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/22/16222/1
--
To view, visit http://gerrit.cloudera.org:8080/16222
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5f8527aea9e433f8cf426435c0ba41355bbf9d88
Gerrit-Change-Number: 16222
Gerrit-PatchSet: 1
Gerrit-Owner: Sahil Takiar <stak...@cloudera.com>

Reply via email to