From bb77342606c0d31af2d008970447edab716a300c Mon Sep 17 00:00:00 2001 From: alesapin Date: Thu, 29 Jul 2021 15:33:28 +0300 Subject: [PATCH] Add test --- ...01925_broken_partition_id_zookeeper.reference | 0 .../01925_broken_partition_id_zookeeper.sql | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/queries/0_stateless/01925_broken_partition_id_zookeeper.reference create mode 100644 tests/queries/0_stateless/01925_broken_partition_id_zookeeper.sql diff --git a/tests/queries/0_stateless/01925_broken_partition_id_zookeeper.reference b/tests/queries/0_stateless/01925_broken_partition_id_zookeeper.reference new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/queries/0_stateless/01925_broken_partition_id_zookeeper.sql b/tests/queries/0_stateless/01925_broken_partition_id_zookeeper.sql new file mode 100644 index 00000000000..bcd8bb4c87e --- /dev/null +++ b/tests/queries/0_stateless/01925_broken_partition_id_zookeeper.sql @@ -0,0 +1,16 @@ +DROP TABLE IF EXISTS broken_partition; + +CREATE TABLE broken_partition +( + date Date, + key UInt64 +) +ENGINE = ReplicatedMergeTree('/clickhouse/test_01925_{database}/rmt', 'r1') +ORDER BY tuple() +PARTITION BY date; + +ALTER TABLE broken_partition DROP PARTITION ID '20210325_0_13241_6_12747'; + +ALTER TABLE broken_partition DROP PARTITION ID '20210325_0_13241_6_12747'; + +DROP TABLE IF EXISTS broken_partition;