Updating tests to use a column alias in addition to the table alias.

This commit is contained in:
Vitaliy Zakaznikov 2019-12-06 13:34:52 +01:00
parent 435ce84939
commit 590a1f7b87
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);