mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added test [#CLICKHOUSE-31].
This commit is contained in:
parent
eb47356e4f
commit
f6be687717
@ -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
|
36
dbms/tests/queries/0_stateless/00467_qualified_names.sql
Normal file
36
dbms/tests/queries/0_stateless/00467_qualified_names.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user