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

Function extend_exec_option_dimension

tests/common/test_dimensions.py:329–343  ·  view source on GitHub ↗

Takes an ImpalaTestSuite object 'test_suite' and extends the exec option test dimension by creating a copy of each existing exec option value that has 'key' set to 'value', doubling the number of tests that will be run. Exec option 'key' must not be declared before.

(test_suite, key, value)

Source from the content-addressed store, hash-verified

327
328
329def extend_exec_option_dimension(test_suite, key, value):
330 """
331 Takes an ImpalaTestSuite object 'test_suite' and extends the exec option test dimension
332 by creating a copy of each existing exec option value that has 'key' set to 'value',
333 doubling the number of tests that will be run. Exec option 'key' must not be declared
334 before.
335 """
336 test_suite.ImpalaTestMatrix.assert_unique_exec_option_key(key)
337 dim = test_suite.ImpalaTestMatrix.dimensions["exec_option"]
338 new_value = []
339 for v in dim:
340 new_value.append(ImpalaTestVector.Value(v.name, copy.copy(v.value)))
341 new_value[-1].value[key] = value
342 dim.extend(new_value)
343 test_suite.ImpalaTestMatrix.add_dimension(dim)
344
345
346def get_dataset_from_workload(workload):

Callers 3

add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90
add_test_dimensionsMethod · 0.90

Calls 5

add_dimensionMethod · 0.80
appendMethod · 0.45
ValueMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected