Added test [#CLICKHOUSE-31].

This commit is contained in:
Alexey Milovidov 2017-06-19 06:06:17 +03:00
parent eb47356e4f
commit f6be687717
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,27 @@
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
[1,2] ['hello','world'] [1,2] ['hello','world'] [1,2] ['hello','world'] [1,2] ['hello','world']
0
1
0
1
1
1

View File

@ -0,0 +1,36 @@
SELECT dummy FROM system.one;
SELECT * FROM system.one;
SELECT `one`.dummy FROM system.one;
SELECT one.* FROM system.one;
SELECT system.`one`.dummy FROM system.one;
SELECT `system`.`one`.* FROM system.one;
SELECT `t`.dummy FROM system.one AS t;
SELECT t.* FROM system.one AS t;
SELECT t.dummy FROM system.one t;
SELECT t.* FROM system.one t;
SELECT one.dummy FROM system.one one;
SELECT one.* FROM system.one one;
USE system;
SELECT `dummy` FROM `one`;
SELECT * FROM one;
SELECT one.dummy FROM one;
SELECT one.* FROM one;
SELECT system.one.dummy FROM one;
SELECT system.one.* FROM one;
SELECT system.one.dummy FROM `one` AS `t`;
SELECT system.one.* FROM one AS `t`;
DROP TABLE IF EXISTS test.nested;
CREATE TABLE test.nested (nest Nested(a UInt8, b String)) ENGINE = Memory;
INSERT INTO test.nested VALUES ([1, 2], ['hello', 'world']);
SELECT nest.a, nest.b, nested.`nest`.`a`, test.nested.nest.b, t.nest.a, t.nest.b, t.* FROM test.nested AS t;
DROP TABLE test.nested;
SELECT number FROM numbers(2);
SELECT t.number FROM numbers(2) t;
SELECT x FROM (SELECT 1 AS x);
SELECT t.x FROM (SELECT 1 AS x) t;