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

Method __find_time

tests/query_test/test_rows_availability.py:96–102  ·  view source on GitHub ↗

Find event time point in a line from the runtime profile timeline.

(line)

Source from the content-addressed store, hash-verified

94
95 @staticmethod
96 def __find_time(line):
97 """Find event time point in a line from the runtime profile timeline."""
98 # Given line "- Rows available: 3s311ms (2s300ms)", this function returns "3s311ms"
99 match = re.search(r': (.*) \(', line)
100 if match is None:
101 assert False, "Failed to find time in runtime profile"
102 return match.group(1)

Callers 1

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected