INSERT INTO rt(id, ver, name) VALUES(1, 3, 'Hillary')
rt
- name of the ReplacingMergeTree tableid
- primary key column (identifies unique rows)ver
- version column (we should increment it to overwrite row identified byid
)name
- sample string column(1, 3, 'Hillary')
- we insert3
intover
column (assume current version stored there is2
)
group: ReplacingMergeTree
SELECT * FROM rt FINAL;
┌─id─┬─ver─┬─name────┐
│ 1 │ 3 │ Hillary │
└────┴─────┴─────────┘