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

Method add_exec_option_dimension

tests/common/test_vector.py:188–202  ·  view source on GitHub ↗

Add 'dimension' into 'self.dimensions' and memorize the name. During vector generation, all dimensions registered through this method will be embedded into 'exec_option' dimension. This is intended to maintain pairwise and exhaustive combination correct while eliminating the need fo

(self, dimension)

Source from the content-addressed store, hash-verified

186 vector.value[key] = value
187
188 def add_exec_option_dimension(self, dimension):
189 """
190 Add 'dimension' into 'self.dimensions' and memorize the name.
191 During vector generation, all dimensions registered through this method will be
192 embedded into 'exec_option' dimension. This is intended to maintain pairwise and
193 exhaustive combination correct while eliminating the need for individual test method
194 to append the custom exec options into 'exec_option' dimension themself.
195 """
196 self.assert_unique_exec_option_key(dimension.name)
197 assert len(dimension) > 1, (
198 "Dimension " + dimension.name + " must have more than 1 possible value! "
199 "Use add_mandatory_exec_option() instead.")
200
201 self.add_dimension(dimension)
202 self.independent_exec_option_names.add(dimension.name)
203
204 def clear(self):
205 self.dimensions.clear()

Callers 1

Calls 3

add_dimensionMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected