Skip to content

Commit

Permalink
Merge pull request #17 from laian/master
Browse files Browse the repository at this point in the history
QP-815-error-state-logging
  • Loading branch information
laian authored Jun 26, 2017
2 parents b7911b0 + feb32ee commit a7608eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/impala/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def _sleep_interval(start_time):
while True:
state = cur.status()
if self._cursor._op_state_is_error(state):
raise OperationalError("Operation is in ERROR_STATE")
raise OperationalError(self._cursor.get_log())
if not cur._op_state_is_executing(state):
break
time.sleep(_sleep_interval(loop_start))
Expand Down

0 comments on commit a7608eb

Please sign in to comment.