Added a test for #7754

This commit is contained in:
Alexey Milovidov 2020-07-14 21:59:25 +03:00
parent 7998575a34
commit cd7ed94a08
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,4 @@
1 --
1 RU
1 --
1 RU

View File

@ -0,0 +1,15 @@
DROP TABLE IF EXISTS test;
CREATE TABLE test
(
id UInt32,
code LowCardinality(FixedString(2)) DEFAULT '--'
) ENGINE = MergeTree() PARTITION BY id ORDER BY id;
INSERT INTO test FORMAT CSV 1,RU
INSERT INTO test FORMAT CSV 1,
SELECT * FROM test ORDER BY code;
OPTIMIZE TABLE test;
SELECT * FROM test ORDER BY code;
DROP TABLE test;