MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / parse_since_from_explain

Function parse_since_from_explain

test/cluster/mzcompose.py:3348–3354  ·  view source on GitHub ↗
(explain: str)

Source from the content-addressed store, hash-verified

3346 return table_since, index_since
3347
3348 def parse_since_from_explain(explain: str) -> int:
3349 since_line = re.compile(r"\s*read frontier:\[(?P<since>\d+) \(.+\)\]")
3350 for line in explain.splitlines():
3351 if match := since_line.match(line):
3352 return int(match.group("since"))
3353
3354 raise AssertionError(f"since not found in explain: {explain}")
3355
3356 def validate_since(since: int, name: str) -> None:
3357 now = datetime.now()

Callers 1

collect_sincesFunction · 0.85

Calls 2

compileMethod · 0.80
groupMethod · 0.80

Tested by

no test coverage detected