Added a test for #1776

This commit is contained in:
Alexey Milovidov 2020-04-15 07:20:22 +03:00
parent 2a48b0ecd7
commit 62b5aa343d
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1 @@
2000 hello

View File

@ -0,0 +1,10 @@
DROP TABLE IF EXISTS summing;
CREATE TABLE summing (k String, x UInt64, e Enum('hello' = 1, 'world' = 2)) ENGINE = SummingMergeTree ORDER BY k;
INSERT INTO summing SELECT '', 1, e FROM generateRandom('e Enum(\'hello\' = 1, \'world\' = 2)', 1) LIMIT 1000;
INSERT INTO summing SELECT '', 1, e FROM generateRandom('e Enum(\'hello\' = 1, \'world\' = 2)', 1) LIMIT 1000;
OPTIMIZE TABLE summing;
SELECT k, x, e FROM summing;
DROP TABLE summing;