mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added test [#CLICKHOUSE-2754]
This commit is contained in:
parent
fb0920ff98
commit
2cf73473f7
@ -0,0 +1,8 @@
|
||||
hello
|
||||
world
|
||||
hello \N
|
||||
world \N
|
||||
hello \N
|
||||
world \N
|
||||
hello 0
|
||||
world 0
|
13
dbms/tests/queries/0_stateless/00571_alter_nullable.sql
Normal file
13
dbms/tests/queries/0_stateless/00571_alter_nullable.sql
Normal file
@ -0,0 +1,13 @@
|
||||
DROP TABLE IF EXISTS test.nullable;
|
||||
CREATE TABLE test.nullable (x String) ENGINE = MergeTree ORDER BY x;
|
||||
INSERT INTO test.nullable VALUES ('hello'), ('world');
|
||||
SELECT * FROM test.nullable;
|
||||
ALTER TABLE test.nullable ADD COLUMN n Nullable(UInt64);
|
||||
SELECT * FROM test.nullable;
|
||||
ALTER TABLE test.nullable DROP COLUMN n;
|
||||
ALTER TABLE test.nullable ADD COLUMN n Nullable(UInt64) DEFAULT NULL;
|
||||
SELECT * FROM test.nullable;
|
||||
ALTER TABLE test.nullable DROP COLUMN n;
|
||||
ALTER TABLE test.nullable ADD COLUMN n Nullable(UInt64) DEFAULT 0;
|
||||
SELECT * FROM test.nullable;
|
||||
DROP TABLE test.nullable;
|
Loading…
Reference in New Issue
Block a user