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

Method create_client_from_vector

tests/common/impala_service.py:567–573  ·  view source on GitHub ↗

A shorthand for create_client with test vector as input. Vector must have 'protocol' and 'exec_option' dimension. Return a client of specified 'protocol' and with cofiguration 'exec_option' set.

(self, vector)

Source from the content-addressed store, hash-verified

565 return client
566
567 def create_client_from_vector(self, vector):
568 """A shorthand for create_client with test vector as input.
569 Vector must have 'protocol' and 'exec_option' dimension.
570 Return a client of specified 'protocol' and with cofiguration 'exec_option' set."""
571 client = self.create_client(protocol=vector.get_value('protocol'))
572 client.set_configuration(vector.get_exec_option_dict())
573 return client
574
575
576# Allows for interacting with the StateStore service to perform operations such as

Callers 7

_verify_describe_viewMethod · 0.80
test_views_describeMethod · 0.80
test_cancellationMethod · 0.80
runMethod · 0.80

Calls 4

create_clientMethod · 0.95
set_configurationMethod · 0.80
get_exec_option_dictMethod · 0.80
get_valueMethod · 0.45

Tested by 7

_verify_describe_viewMethod · 0.64
test_views_describeMethod · 0.64
test_cancellationMethod · 0.64
runMethod · 0.64