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

Method _format_no_result_set

shell/impala_shell/impala_shell.py:1476–1483  ·  view source on GitHub ↗
(self, query_str, start_time)

Source from the content-addressed store, hash-verified

1474 return "Time elapsed: %2.2fs" % time_elapsed
1475
1476 def _format_no_result_set(self, query_str, start_time):
1477 # Print the elapsed time except for USE.
1478 if not (query_str[:3].lower().startswith('use')):
1479 num_fetched_rows = 0 if self.beeswax_compat_num_rows else None
1480 time_elapsed = time.time() - start_time
1481 row_report = self._format_num_rows_report(
1482 time_elapsed, num_fetched_rows=num_fetched_rows)
1483 self._print_if_verbose(row_report)
1484
1485 def _execute_stmt(self, query_str, is_dml=False, print_web_link=False):
1486 """Executes 'query_str' with options self.set_query_options on the Impala server.

Callers 1

_execute_stmtMethod · 0.95

Calls 2

_print_if_verboseMethod · 0.95

Tested by

no test coverage detected