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

Function table_value

tests/custom_cluster/test_tuple_cache.py:43–49  ·  view source on GitHub ↗
(seed)

Source from the content-addressed store, hash-verified

41
42# Generates a random table entry of at least 15 bytes.
43def table_value(seed):
44 r = random.Random(seed)
45 name = "".join([r.choice(string.ascii_letters) for _ in range(r.randint(5, 20))])
46 age = r.randint(1, 90)
47 address = "{0} {1}".format(r.randint(1, 9999),
48 "".join([r.choice(string.ascii_letters) for _ in range(r.randint(4, 12))]))
49 return '"{0}", {1}, "{2}"'.format(name, age, address)
50
51
52def getCounterValues(profile, key):

Callers 6

create_tableMethod · 0.85
test_runtime_filtersMethod · 0.85

Calls 4

rangeFunction · 0.85
RandomMethod · 0.80
joinMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected