mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
Fix summingmergetree docs
This commit is contained in:
parent
e5272ea43c
commit
4eef0278a6
@ -14,7 +14,7 @@ SummingMergeTree(EventDate, (OrderID, EventDate, BannerID, ...), 8192, (Shows, C
|
||||
|
||||
The columns to total are set explicitly (the last parameter – Shows, Clicks, Cost, ...). When merging, all rows with the same primary key value have their values totaled in the specified columns. The specified columns also must be numeric and must not be part of the primary key.
|
||||
|
||||
If the values were null in all of these columns, the row is deleted. (The exception is cases when the data part would not have any rows left in it.)
|
||||
If the values were zero in all of these columns, the row is deleted. (The exception is cases when the data part would not have any rows left in it.)
|
||||
|
||||
For the other columns that are not part of the primary key, the first value that occurs is selected when merging. But if a column is of AggregateFunction type, then it is merged according to that function, which effectively makes this engine behave like `AggregatingMergeTree`.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user