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

Function assert_kill_ok

tests/util/cancel_util.py:77–81  ·  view source on GitHub ↗
(client, query_id, user=None)

Source from the content-addressed store, hash-verified

75
76
77def assert_kill_ok(client, query_id, user=None):
78 sql = "KILL QUERY '{0}'".format(query_id)
79 result = client.execute(sql, user=user)
80 assert result.success and len(result.data) == 1
81 assert result.data[0] == "Query {0} is killed.".format(query_id)
82
83
84def assert_kill_error(client, error_msg, query_id=None, sql=None, user=None):

Callers 8

test_same_coordinatorMethod · 0.90
test_idempotenceMethod · 0.90
test_kill_as_adminMethod · 0.90
cancel_queryMethod · 0.85

Calls 2

formatMethod · 0.45
executeMethod · 0.45