MCPcopy Create free account
hub / github.com/apache/impala / do_compute

Method do_compute

shell/impala_shell/impala_shell.py:1342–1355  ·  view source on GitHub ↗

Executes a COMPUTE STATS query. Impala shell cannot get child query handle so it cannot query live progress for COMPUTE STATS query. Disable live progress/summary callback for COMPUTE STATS query.

(self, args)

Source from the content-addressed store, hash-verified

1340 return self._execute_stmt(query_str, print_web_link=True)
1341
1342 def do_compute(self, args):
1343 """Executes a COMPUTE STATS query.
1344 Impala shell cannot get child query handle so it cannot
1345 query live progress for COMPUTE STATS query. Disable live
1346 progress/summary callback for COMPUTE STATS query."""
1347
1348 query = self._build_query_string(self.last_leading_comment, self.orig_cmd, args)
1349 (prev_live_progress, prev_live_summary) = self.live_progress, self.live_summary
1350 (self.live_progress, self.live_summary) = False, False
1351 try:
1352 ret = self._execute_stmt(query)
1353 finally:
1354 (self.live_progress, self.live_summary) = prev_live_progress, prev_live_summary
1355 return ret
1356
1357 def _format_outputstream(self):
1358 column_names = self.imp_client.get_column_names(self.last_query_handle)

Callers

nothing calls this directly

Calls 2

_build_query_stringMethod · 0.95
_execute_stmtMethod · 0.95

Tested by

no test coverage detected