Skip to content

Commit 40b5aaa

Browse files
Merge pull request ClickHouse#63580 from ClickHouse/docs-data-replication-examples
[Docs] Use ReplicatedMergeTree not ReplicatedReplacingMergeTree for d…
2 parents 8ed2456 + 849dd82 commit 40b5aaa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/en/engines/table-engines/mergetree-family/replication.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sidebar_label: Data Replication
1010
In ClickHouse Cloud replication is managed for you. Please create your tables without adding arguments. For example, in the text below you would replace:
1111

1212
```sql
13-
ENGINE = ReplicatedReplacingMergeTree(
13+
ENGINE = ReplicatedMergeTree(
1414
'/clickhouse/tables/{shard}/table_name',
1515
'{replica}',
1616
ver
@@ -20,7 +20,7 @@ ENGINE = ReplicatedReplacingMergeTree(
2020
with:
2121

2222
```sql
23-
ENGINE = ReplicatedReplacingMergeTree
23+
ENGINE = ReplicatedMergeTree
2424
```
2525
:::
2626

@@ -140,11 +140,11 @@ The system monitors data synchronicity on replicas and is able to recover after
140140
:::note
141141
In ClickHouse Cloud replication is managed for you. Please create your tables without adding arguments. For example, in the text below you would replace:
142142
```
143-
ENGINE = ReplicatedReplacingMergeTree('/clickhouse/tables/{shard}/table_name', '{replica}', ver)
143+
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/table_name', '{replica}', ver)
144144
```
145145
with:
146146
```
147-
ENGINE = ReplicatedReplacingMergeTree
147+
ENGINE = ReplicatedMergeTree
148148
```
149149
:::
150150

@@ -177,7 +177,7 @@ CREATE TABLE table_name
177177
CounterID UInt32,
178178
UserID UInt32,
179179
ver UInt16
180-
) ENGINE = ReplicatedReplacingMergeTree('/clickhouse/tables/{shard}/table_name', '{replica}', ver)
180+
) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/table_name', '{replica}', ver)
181181
PARTITION BY toYYYYMM(EventDate)
182182
ORDER BY (CounterID, EventDate, intHash32(UserID))
183183
SAMPLE BY intHash32(UserID);

0 commit comments

Comments
 (0)