Skip to content

Commit

Permalink
fix: #76 replicated engine other than ReplicatedMergeTree not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvynl committed Feb 19, 2024
1 parent 202547b commit a946b21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clickhouse_backend/models/engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ def __init__(self, *expressions, **extra):
len(expressions),
)
)
replicated_params = map(value_if_string, self.expressions[:2])
replicated_params = map(value_if_string, expressions[:2])
super().__init__(*expressions[2:], **extra)
self.expressions = (*replicated_params, *self.expressions)
self.source_expressions = (*replicated_params, *self.source_expressions)


class ReplicatedMergeTree(MergeTree):
Expand Down

0 comments on commit a946b21

Please sign in to comment.