Skip to content

Commit

Permalink
let me match
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaemming committed Dec 5, 2024
1 parent cd5ed5b commit a900fdc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ee/clickhouse/materialized_columns/test/test_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def test_lifecycle(self):
MaterializedColumn.get(table, destination_column)

def _get_latest_mutation_id(self, table: str) -> str:
match sync_execute(
[(mutation_id,)] = sync_execute(
"""
SELECT max(mutation_id)
FROM system.mutations
Expand All @@ -348,9 +348,8 @@ def _get_latest_mutation_id(self, table: str) -> str:
AND table = %(table)s
""",
{"table": table},
):
case [(mutation_id,)]:
return mutation_id
)
return mutation_id

def _get_mutations_since_id(self, table: str, id: str) -> Iterable[str]:
return [
Expand Down

0 comments on commit a900fdc

Please sign in to comment.