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

Method __log_execute

tests/common/impala_connection.py:669–676  ·  view source on GitHub ↗
(self, cursor, user, sql_stmt)

Source from the content-addressed store, hash-verified

667 return None
668
669 def __log_execute(self, cursor, user, sql_stmt):
670 self.log_client(
671 (u"executing against {0} at {1}. session: {2} main_cursor: {3} "
672 u"user: {4}\n{5}").format(
673 (self._is_hive and 'Hive' or 'Impala'), self.__host_port,
674 self.__get_session_id(cursor), (cursor == self.default_cursor()), user,
675 format_sql_for_logging(sql_stmt))
676 )
677
678 def execute(self, sql_stmt, user=None, fetch_profile_after_close=False,
679 fetch_exec_summary=False, profile_format=TRuntimeProfileFormat.STRING):

Callers 2

executeMethod · 0.95
execute_asyncMethod · 0.95

Calls 5

__get_session_idMethod · 0.95
default_cursorMethod · 0.95
format_sql_for_loggingFunction · 0.85
log_clientMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected