mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
Add a test for alias in USING clause
This commit is contained in:
parent
d58b76ce06
commit
0faf784d2f
@ -0,0 +1 @@
|
|||||||
|
1
|
@ -0,0 +1,11 @@
|
|||||||
|
CREATE TABLE t1 (x Int16, y ALIAS x + x * 2) ENGINE=MergeTree() ORDER BY x;
|
||||||
|
CREATE TABLE t2 (y Int16, z Int16) ENGINE=MergeTree() ORDER BY y;
|
||||||
|
|
||||||
|
INSERT INTO t1 VALUES (1231), (123);
|
||||||
|
INSERT INTO t2 VALUES (6666, 48);
|
||||||
|
INSERT INTO t2 VALUES (369, 50);
|
||||||
|
|
||||||
|
SELECT count() FROM t1 INNER JOIN t2 USING (y);
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
DROP TABLE IF EXISTS t2;
|
Loading…
Reference in New Issue
Block a user