You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drop partition failed for partition value 2106-02-07 #26263
Drop partition failed with following error: DB::Exception: Parsed partition value: 2106-02-07 doesn't match partition value for an existing part with the same partition ID: 21060207_1_1_0
CREATE DATABASE Test
CREATE TABLE Test.Example (`d` DateTime, `a` Int) ENGINE = ReplacingMergeTree PARTITION BY toStartOfWeek(toDateTime(d, 'UTC')) ORDER BY d
INSERT INTO Test.Example VALUES (toDateTime(0,'UTC'), 1)
SELECT partition FROM system.parts WHERE database = 'Test'
┌─partition──┐
│ 2106-02-07 │
└────────────┘
ALTER TABLE Test.Example
DROP PARTITION '2106-02-07'
Received exception from server (version 20.8.19):
Code: 248. DB::Exception: Received from clickhouse-server:9000. DB::Exception: Parsed partition value: 2106-02-07 doesn't match partition value for an existing part with the same partition ID: 21060207_1_1_0. \
Overflow of Date values is implementation specific behaviour. If you have the partition with overflowed value, you should drop it manually from filesystem and restart clickhouse-server.
Activity
alexey-milovidov commentedon Jul 13, 2021
Overflow of
Datevalues is implementation specific behaviour. If you have the partition with overflowed value, you should drop it manually from filesystem and restart clickhouse-server.markheger commentedon Jul 13, 2021
The problem does not occur in 21.x release, hope that same fix could be done in 20.x release
SaltTan commentedon Jul 13, 2021
Try
ALTER TABLE Test.Example DROP PARTITION ID '21060207'Or whatever
SELECT partition_id FROM system.partsis.