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

Method get_query_id

tests/common/impala_connection.py:747–754  ·  view source on GitHub ↗

Return the string representation of the query id. Return empty string if handle is already canceled or closed.

(self, operation_handle)

Source from the content-addressed store, hash-verified

745 return cursor.cancel_operation(reset_state=False)
746
747 def get_query_id(self, operation_handle):
748 """Return the string representation of the query id.
749 Return empty string if handle is already canceled or closed."""
750 id = None
751 last_op = operation_handle.get_handle()._last_operation
752 if last_op is not None:
753 id = op_handle_to_query_id(last_op.handle)
754 return "" if id is None else id
755
756 def __get_session_id(self, cursor):
757 """Return the string representation of the session id.

Callers 2

handle_idMethod · 0.95
__fetch_resultsMethod · 0.95

Calls 2

op_handle_to_query_idFunction · 0.90
get_handleMethod · 0.80

Tested by

no test coverage detected