mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Add test.
This commit is contained in:
parent
937c0fb4a4
commit
4c3af43ed3
@ -0,0 +1,3 @@
|
||||
0
|
||||
foo
|
||||
foo
|
11
dbms/tests/queries/0_stateless/00806_alter_update.sql
Normal file
11
dbms/tests/queries/0_stateless/00806_alter_update.sql
Normal file
@ -0,0 +1,11 @@
|
||||
DROP TABLE IF EXISTS test.alter_update;
|
||||
|
||||
CREATE TABLE test.alter_update (d Date, e Enum8('foo'=1, 'bar'=2)) Engine = MergeTree(d, (d), 8192);
|
||||
INSERT INTO test.alter_update (d, e) VALUES ('2018-01-01', 'foo');
|
||||
INSERT INTO test.alter_update (d, e) VALUES ('2018-01-02', 'bar');
|
||||
|
||||
ALTER TABLE test.alter_update UPDATE e = CAST('foo', 'Enum8(\'foo\' = 1, \'bar\' = 2)') WHERE d='2018-01-02';
|
||||
|
||||
SELECT sleep(1); -- TODO: there should be setting for sync ALTER UPDATE someday.
|
||||
|
||||
SELECT e FROM test.alter_update ORDER BY d;
|
Loading…
Reference in New Issue
Block a user