2021-08-05 18:04:11 +00:00
|
|
|
SET mutations_sync=2;
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS rep_data;
|
|
|
|
CREATE TABLE rep_data
|
|
|
|
(
|
|
|
|
p Int,
|
|
|
|
t DateTime,
|
|
|
|
INDEX idx t TYPE minmax GRANULARITY 1
|
|
|
|
)
|
|
|
|
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{database}/rep_data', '1')
|
|
|
|
PARTITION BY p
|
|
|
|
ORDER BY t
|
|
|
|
SETTINGS number_of_free_entries_in_pool_to_execute_mutation=0;
|
|
|
|
INSERT INTO rep_data VALUES (1, now());
|
|
|
|
ALTER TABLE rep_data MATERIALIZE INDEX idx IN PARTITION ID 'NO_SUCH_PART'; -- { serverError 248 }
|
|
|
|
ALTER TABLE rep_data MATERIALIZE INDEX idx IN PARTITION ID '1';
|
|
|
|
ALTER TABLE rep_data MATERIALIZE INDEX idx IN PARTITION ID '2';
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS data;
|
|
|
|
CREATE TABLE data
|
|
|
|
(
|
|
|
|
p Int,
|
|
|
|
t DateTime,
|
|
|
|
INDEX idx t TYPE minmax GRANULARITY 1
|
|
|
|
)
|
|
|
|
ENGINE = MergeTree
|
|
|
|
PARTITION BY p
|
|
|
|
ORDER BY t
|
|
|
|
SETTINGS number_of_free_entries_in_pool_to_execute_mutation=0;
|
|
|
|
INSERT INTO data VALUES (1, now());
|
2021-12-15 18:19:29 +00:00
|
|
|
ALTER TABLE data MATERIALIZE INDEX idx IN PARTITION ID 'NO_SUCH_PART'; -- { serverError 248 }
|
2021-08-05 18:04:11 +00:00
|
|
|
ALTER TABLE data MATERIALIZE INDEX idx IN PARTITION ID '1';
|
|
|
|
ALTER TABLE data MATERIALIZE INDEX idx IN PARTITION ID '2';
|