mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
ISSUES-258 add validation test for ISSUES-258
This commit is contained in:
parent
65da2ee15b
commit
21b62eabb6
@ -2,8 +2,11 @@ DROP TABLE IF EXISTS test.null;
|
||||
DROP TABLE IF EXISTS test.null_view;
|
||||
|
||||
CREATE TABLE test.null (x UInt8) ENGINE = Null;
|
||||
CREATE VIEW test.null_view AS SELECT * FROM test.null WHERE toUInt64(x) IN (SELECT number FROM system.numbers);
|
||||
CREATE VIEW test.null_view AS SELECT * FROM test.null;
|
||||
INSERT INTO test.null VALUES (1);
|
||||
|
||||
SELECT * FROM test.null;
|
||||
SELECT * FROM test.null_view;
|
||||
|
||||
DROP TABLE test.null;
|
||||
DROP TABLE test.null_view;
|
@ -0,0 +1 @@
|
||||
CREATE VIEW test.test_view ( id UInt64) AS SELECT * FROM test.test WHERE id = (SELECT 1)
|
@ -0,0 +1,13 @@
|
||||
DROP TABLE IF EXISTS test.test;
|
||||
DROP TABLE IF EXISTS test.test_view;
|
||||
|
||||
CREATE TABLE test.test(id UInt64) ENGINE = Log;
|
||||
CREATE VIEW test.test_view AS SELECT * FROM test.test WHERE id = (SELECT 1);
|
||||
|
||||
DETACH TABLE test.test_view;
|
||||
ATTACH TABLE test.test_view;
|
||||
|
||||
SHOW CREATE TABLE test.test_view;
|
||||
|
||||
DROP TABLE IF EXISTS test.test;
|
||||
DROP TABLE IF EXISTS test.test_view;
|
Loading…
Reference in New Issue
Block a user