Skip to content

[Question] ReplicatedMergeTree can't insert duplicate rows ? #2578

@lamberken

Description

@lamberken

Hi, ReplicatedMergeTree can't insert duplicate rows? what's wrong?

a minimal reproducible example

DROP TABLE IF EXISTS test.replicated_alter1;

CREATE TABLE test.replicated_alter1
(
    d Date,
    k UInt64,
    i32 Int32
)
ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/alter', 'r1', d, k, 8192);

INSERT INTO test.replicated_alter1 VALUES ('2015-01-03', 10, 44);
INSERT INTO test.replicated_alter1 VALUES ('2015-01-03', 10, 44);


SELECT *
FROM test.replicated_alter1 ;


┌──────────d─┬──k─┬─i32─┐
│ 2015-01-03 │ 10 │  44 │
└────────────┴────┴─────┘

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions