Added a test #3286

This commit is contained in:
Alexey Milovidov 2018-12-30 06:14:16 +03:00
parent b0ce514276
commit f3dbfec808
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,3 @@
1 1
1 1 456
1 456

View File

@ -0,0 +1,23 @@
USE test;
drop table if exists t1;
drop table if exists t2;
create table t1 (a Int8, val Float32) engine=Memory();
create table t2 (a Int8, val Float32) engine=Memory();
INSERT INTO t1 VALUES (1, 123);
INSERT INTO t2 VALUES (1, 456);
select t1.a, t2.a from t1 all inner join t2 on t1.a=t2.a;
-- Received exception from server (version 18.14.1):
-- Code: 47. DB::Exception: Received from localhost:9000, 127.0.0.1. DB::Exception: Unknown identifier: test.t2.a.
-- this query works fine
select t1.a, t2.* from t1 all inner join t2 on t1.a=t2.a;
-- and this
select t1.a, t2.val from t1 all inner join t2 on t1.a=t2.a;
DROP TABLE t1;
DROP TABLE t2;