ClickHouse/tests/queries/0_stateless/01412_optimize_deduplicate_bug.sql
Nikolai Kochetov 4ceee71d1f Added test.
2020-07-21 11:21:13 +03:00

11 lines
293 B
SQL

drop table if exists tesd_dedupl;
create table tesd_dedupl (x UInt32, y UInt32) engine = MergeTree order by x;
insert into tesd_dedupl values (1, 1);
insert into tesd_dedupl values (1, 1);
OPTIMIZE TABLE tesd_dedupl DEDUPLICATE;
select * from tesd_dedupl;
drop table if exists tesd_dedupl;