mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Updating tests to use a column alias in addition to the table alias.
This commit is contained in:
parent
435ce84939
commit
590a1f7b87
@ -4,7 +4,7 @@ DROP TABLE IF EXISTS test.lv;
|
|||||||
DROP TABLE IF EXISTS test.mt;
|
DROP TABLE IF EXISTS test.mt;
|
||||||
|
|
||||||
CREATE TABLE test.mt (a Int32) Engine=MergeTree order by tuple();
|
CREATE TABLE test.mt (a Int32) Engine=MergeTree order by tuple();
|
||||||
CREATE LIVE VIEW test.lv AS SELECT * FROM ( SELECT sum(boo.a) FROM ( SELECT foo.a FROM (SELECT a FROM test.mt) AS foo) AS boo );
|
CREATE LIVE VIEW test.lv AS SELECT * FROM ( SELECT sum(boo.x) FROM ( SELECT foo.x FROM (SELECT a AS x FROM test.mt) AS foo) AS boo );
|
||||||
|
|
||||||
INSERT INTO test.mt VALUES (1),(2),(3);
|
INSERT INTO test.mt VALUES (1),(2),(3);
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ DROP TABLE IF EXISTS test.lv;
|
|||||||
DROP TABLE IF EXISTS test.mt;
|
DROP TABLE IF EXISTS test.mt;
|
||||||
|
|
||||||
CREATE TABLE test.mt (a Int32) Engine=MergeTree order by tuple();
|
CREATE TABLE test.mt (a Int32) Engine=MergeTree order by tuple();
|
||||||
CREATE LIVE VIEW test.lv AS SELECT foo.a FROM (SELECT a FROM test.mt) AS foo;
|
CREATE LIVE VIEW test.lv AS SELECT foo.x FROM (SELECT a AS x FROM test.mt) AS foo;
|
||||||
|
|
||||||
INSERT INTO test.mt VALUES (1),(2),(3);
|
INSERT INTO test.mt VALUES (1),(2),(3);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user