Add a test

This commit is contained in:
Alexey Milovidov 2024-10-21 22:45:39 +02:00
parent 01db925bbc
commit e817d814bf
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1 @@
1 2 2 1

View File

@ -0,0 +1,8 @@
DROP TABLE IF EXISTS test;
CREATE TABLE test (x UInt8) ORDER BY x;
INSERT INTO test VALUES (1);
INSERT INTO test VALUES (2);
OPTIMIZE TABLE test FINAL;
SYSTEM FLUSH LOGS;
SELECT ProfileEvents['Merge'], ProfileEvents['MergeSourceParts'], ProfileEvents['MergedRows'], ProfileEvents['MergedColumns'] FROM system.part_log WHERE database = currentDatabase() AND table = 'test' AND event_type = 'MergeParts';
DROP TABLE test;