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

Method add_dimension

tests/common/test_vector.py:156–163  ·  view source on GitHub ↗
(self, dimension)

Source from the content-addressed store, hash-verified

154 self.independent_exec_option_names = set()
155
156 def add_dimension(self, dimension):
157 self.dimensions[dimension.name] = dimension
158 if dimension.name == EXEC_OPTION:
159 for name in list(self.independent_exec_option_names):
160 LOG.warn("Reassigning {} dimension will remove exec option {}={} that was "
161 "independently declared through add_exec_option_dimension.".format(
162 EXEC_OPTION, name, [v.value for v in self.dimensions[name]]))
163 self.clear_dimension(name)
164
165 def assert_unique_exec_option_key(self, key):
166 """Assert that 'exec_option' dimension exist and 'key' is not exist yet

Callers 15

add_test_dimensionsMethod · 0.80
add_test_dimensionsMethod · 0.80
add_test_dimensionsMethod · 0.80
add_test_dimensionsMethod · 0.80
add_test_dimensionsMethod · 0.80
add_test_dimensionsMethod · 0.80
add_test_dimensionsMethod · 0.80
add_test_dimensionsMethod · 0.80
add_test_dimensionsMethod · 0.80
add_test_dimensionsMethod · 0.80
add_test_dimensionsMethod · 0.80

Calls 3

clear_dimensionMethod · 0.95
warnMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected