mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
7964355ecf
v2: Do not try to process empty mutations Found with flaky check [1]. [1]: https://clickhouse-test-reports.s3.yandex.net/27248/66e8c0833392c20ba8dba3780f2b0d5c18f8194e/functional_stateless_tests_flaky_check_(address).html#fail1
34 lines
1.0 KiB
SQL
34 lines
1.0 KiB
SQL
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());
|
|
ALTER TABLE data MATERIALIZE INDEX idx IN PARTITION ID 'NO_SUCH_PART'; -- { serverError 341 }
|
|
ALTER TABLE data MATERIALIZE INDEX idx IN PARTITION ID '1';
|
|
ALTER TABLE data MATERIALIZE INDEX idx IN PARTITION ID '2';
|