Skip to content

Commit 96829ff

Browse files
Merge pull request ClickHouse#79539 from mneedham/patch-8
Update summingmergetree.md
2 parents f056df2 + 0e29bb3 commit 96829ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: 'SummingMergeTree'
99

1010
# SummingMergeTree
1111

12-
The engine inherits from [MergeTree](/engines/table-engines/mergetree-family/versionedcollapsingmergetree). The difference is that when merging data parts for `SummingMergeTree` tables ClickHouse replaces all the rows with the same primary key (or more accurately, with the same [sorting key](../../../engines/table-engines/mergetree-family/mergetree.md)) with one row which contains summarized values for the columns with the numeric data type. If the sorting key is composed in a way that a single key value corresponds to large number of rows, this significantly reduces storage volume and speeds up data selection.
12+
The engine inherits from [MergeTree](/engines/table-engines/mergetree-family/versionedcollapsingmergetree). The difference is that when merging data parts for `SummingMergeTree` tables ClickHouse replaces all the rows with the same primary key (or more accurately, with the same [sorting key](../../../engines/table-engines/mergetree-family/mergetree.md)) with one row which contains summed values for the columns with the numeric data type. If the sorting key is composed in a way that a single key value corresponds to large number of rows, this significantly reduces storage volume and speeds up data selection.
1313

1414
We recommend using the engine together with `MergeTree`. Store complete data in `MergeTree` table, and use `SummingMergeTree` for aggregated data storing, for example, when preparing reports. Such an approach will prevent you from losing valuable data due to an incorrectly composed primary key.
1515

@@ -34,7 +34,7 @@ For a description of request parameters, see [request description](../../../sql-
3434

3535
#### columns {#columns}
3636

37-
`columns` - a tuple with the names of columns where values will be summarized. Optional parameter.
37+
`columns` - a tuple with the names of columns where values will be summed. Optional parameter.
3838
The columns must be of a numeric type and must not be in the partition or sorting key.
3939

4040
If `columns` is not specified, ClickHouse summarizes the values in all columns with a numeric data type that are not in the sorting key.
@@ -62,7 +62,7 @@ CREATE TABLE [IF NOT EXISTS] [db.]table_name [ON CLUSTER cluster]
6262

6363
All of the parameters excepting `columns` have the same meaning as in `MergeTree`.
6464

65-
- `columns` — tuple with names of columns values of which will be summarized. Optional parameter. For a description, see the text above.
65+
- `columns` — tuple with names of columns values of which will be summed. Optional parameter. For a description, see the text above.
6666

6767
</details>
6868

@@ -107,13 +107,13 @@ ClickHouse can merge the data parts so that different resulting parts of data ca
107107

108108
### Common Rules for Summation {#common-rules-for-summation}
109109

110-
The values in the columns with the numeric data type are summarized. The set of columns is defined by the parameter `columns`.
110+
The values in the columns with the numeric data type are summed. The set of columns is defined by the parameter `columns`.
111111

112112
If the values were 0 in all of the columns for summation, the row is deleted.
113113

114-
If column is not in the primary key and is not summarized, an arbitrary value is selected from the existing ones.
114+
If column is not in the primary key and is not summed, an arbitrary value is selected from the existing ones.
115115

116-
The values are not summarized for columns in the primary key.
116+
The values are not summed for columns in the primary key.
117117

118118
### The Summation in the Aggregatefunction Columns {#the-summation-in-the-aggregatefunction-columns}
119119

0 commit comments

Comments
 (0)