This commit is contained in:
Alexey Milovidov 2023-10-09 03:22:32 +02:00
parent fac83efdd2
commit e13c279efd
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
DROP TABLE IF EXISTS testing;
CREATE TABLE testing
(
a String,
b String,
c String,
d String,
PROJECTION proj_1
(
SELECT b, c
ORDER BY d
)
)
ENGINE = MergeTree()
PRIMARY KEY (a)
ORDER BY (a, b)
SETTINGS index_granularity = 8192, index_granularity_bytes = 0, min_bytes_for_wide_part = 0;
INSERT INTO testing SELECT randomString(5), randomString(5), randomString(5), randomString(5) FROM numbers(10);
OPTIMIZE TABLE testing FINAL;
ALTER TABLE testing MODIFY COLUMN c LowCardinality(String) SETTINGS mutations_sync=2;
SELECT * FROM system.mutations WHERE database = currentDatabase() AND table = 'testing' AND not is_done;
DROP TABLE testing;