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

Method _decide_from_probability

tests/comparison/query_profile.py:315–316  ·  view source on GitHub ↗
(self, *keys)

Source from the content-addressed store, hash-verified

313 in weights.items() if filter_fn(choice_)))
314
315 def _decide_from_probability(self, *keys):
316 return random() < self.probability(*keys)
317
318 def get_max_nested_query_count(self):
319 '''Return the maximum number of queries the top level query may contain.'''

Calls 2

probabilityMethod · 0.95
randomFunction · 0.85

Tested by

no test coverage detected