mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Added a test for #1776
This commit is contained in:
parent
2a48b0ecd7
commit
62b5aa343d
1
tests/queries/0_stateless/01197_summing_enum.reference
Normal file
1
tests/queries/0_stateless/01197_summing_enum.reference
Normal file
@ -0,0 +1 @@
|
||||
2000 hello
|
10
tests/queries/0_stateless/01197_summing_enum.sql
Normal file
10
tests/queries/0_stateless/01197_summing_enum.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user