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

Method test_invalid_query_id

tests/query_test/test_kill_query.py:44–65  ·  view source on GitHub ↗
(self, vector)

Source from the content-addressed store, hash-verified

42 assert_kill_ok(client, query_id_to_kill)
43
44 def test_invalid_query_id(self, vector):
45 with self.create_impala_client(protocol=vector.get_value('protocol')) as client:
46 assert_kill_error(
47 client,
48 "ParseException: Syntax error",
49 sql="KILL QUERY 123:456",
50 )
51 assert_kill_error(
52 client,
53 "AnalysisException: Invalid query id: ''",
54 sql="KILL QUERY ''",
55 )
56 assert_kill_error(
57 client,
58 "AnalysisException: Invalid query id: 'f:g'",
59 sql="KILL QUERY 'f:g'",
60 )
61 assert_kill_error(
62 client,
63 "AnalysisException: Invalid query id: '123'",
64 sql="KILL QUERY '123'",
65 )
66
67 def test_idempotence(self, vector):
68 protocol = vector.get_value('protocol')

Callers

nothing calls this directly

Calls 3

assert_kill_errorFunction · 0.90
create_impala_clientMethod · 0.80
get_valueMethod · 0.45

Tested by

no test coverage detected