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

Detail message: Not unique table/alias‘cc’ #50123

Open
zxf216 opened this issue Aug 22, 2024 · 0 comments
Open

Detail message: Not unique table/alias‘cc’ #50123

zxf216 opened this issue Aug 22, 2024 · 0 comments
Labels
type/bug Something isn't working

Comments

@zxf216
Copy link

zxf216 commented Aug 22, 2024

Steps to reproduce the behavior (Required)

Starrocks:

MySQL [(none)]> select * from
-> (
-> (select 1 as a1) cc
-> left join
-> (select 1 as a2) cc
-> on cc.a1 = cc.a2
-> ) aa;
ERROR 1066 (42000): Getting analyzing error. Detail message: Not unique table/alias: 'cc'.

Spark

spark-sql> select * from
> (
> (select 1 as a1) cc
> left join
> (select 1 as a2) cc
> on cc.a1 = cc.a2
> ) aa;
OK
1 1
Time taken: 6.255 seconds, Fetched 1 row(s)

Presto

presto> select * from
-> (
-> (select 1 as a1) cc
-> left join
-> (select 1 as a2) cc
-> on cc.a1 = cc.a2
-> ) aa;
a1 | a2
----+----
1 | 1
(1 row)

Expected behavior (Required)

no error

Real behavior (Required)

ERROR 1066 (42000): Getting analyzing error. Detail message: Not unique table/alias: 'cc'.

StarRocks version (Required)

2.2.5

@zxf216 zxf216 added the type/bug Something isn't working label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant