Skip to content

Commit

Permalink
Update backfill-populate-mv-in-a-controlled-manner.md
Browse files Browse the repository at this point in the history
.
  • Loading branch information
BorisTyshkevich authored Jul 19, 2023
1 parent 520c9a4 commit 04155cd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ INSERT ... SELECT operating over the very large partition will create data parts
```sql
CREATE TABLE mv_import (
id UInt64,
ts SimpleAggregatingFunction('maxState',DateTime), -- most fresh
v1 SimpleAggregatingFunction('sumState',UInt64), -- just sum
v2 SimpleAggregatingFunction('maxState',String), -- some not empty string
v3 AggregatingFunction('argMaxState',String,ts) -- last value
ts SimpleAggregatingFunction(max,DateTime), -- most fresh
v1 SimpleAggregatingFunction(sum,UInt64), -- just sum
v2 SimpleAggregatingFunction(max,String), -- some not empty string
v3 AggregatingFunction(argMax,String,ts) -- last value
) ENGINE = AggregatingMergeTree()
ORDER BY id;

Expand Down

0 comments on commit 04155cd

Please sign in to comment.