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

Method execute_statement

tests/hs2/hs2_test_suite.py:364–377  ·  view source on GitHub ↗

Executes statement and checks if the response meets the expectations. If so, it returns the response.

(self, statement, conf_overlay=None,
                        expected_status_code=TCLIService.TStatusCode.SUCCESS_STATUS,
                        expected_error_prefix=None)

Source from the content-addressed store, hash-verified

362 % (expected_message, log)
363
364 def execute_statement(self, statement, conf_overlay=None,
365 expected_status_code=TCLIService.TStatusCode.SUCCESS_STATUS,
366 expected_error_prefix=None):
367 """Executes statement and checks if the response meets the expectations.
368 If so, it returns the response."""
369 execute_statement_req = TCLIService.TExecuteStatementReq()
370 execute_statement_req.sessionHandle = self.session_handle
371 execute_statement_req.statement = statement
372 if conf_overlay:
373 execute_statement_req.confOverlay = conf_overlay
374 execute_statement_resp = self.hs2_client.ExecuteStatement(execute_statement_req)
375 HS2TestSuite.check_response(execute_statement_resp, expected_status_code,
376 expected_error_prefix)
377 return execute_statement_resp

Calls 2

check_responseMethod · 0.80
ExecuteStatementMethod · 0.45

Tested by

no test coverage detected