Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql of join many tables needs table Alias, while join two tables needs not #12482

Open
l1t1 opened this issue Jul 14, 2020 · 1 comment
Open

Comments

@l1t1
Copy link

l1t1 commented Jul 14, 2020

create table t100(a UInt8) engine=MergeTree order by a;
insert into t100 select * from numbers(1,100);
select count(*) from t100,t100; -- OK
select count(*) from t100,t100,t100; -- FAIL

Received exception from server (version 20.6.1):
Code: 352. DB::Exception: Received from localhost:9000. DB::Exception: Ambiguous column 't100.a'.
0 rows in set. Elapsed: 0.002 sec.

select count(*) from t100,t100 a,t100 b; -- OK
select count(*) from t100,t100 a,t100 b,t100 c; -- OK
@l1t1 l1t1 added the bug Confirmed user-visible misbehaviour in official release label Jul 14, 2020
@4ertus2 4ertus2 self-assigned this Jul 14, 2020
@4ertus2
Copy link
Contributor

4ertus2 commented Jul 14, 2020

Related #4567

@4ertus2 4ertus2 removed the bug Confirmed user-visible misbehaviour in official release label Jul 15, 2020
@4ertus2 4ertus2 removed their assignment Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants