Alias hides right table column in join #13210
Labels
bug
Confirmed user-visible misbehaviour in official release
comp-joins
JOINs
comp-sql
General SQL support
st-hold
We've paused the work on issue for some reason
Describe the bug
Failure happens when selecting a constant renaming to the same name with an existing column of a joined table which is also in where clause.
How to reproduce
Which ClickHouse server version to use: version 20.3.12.112 (official build)
Which interface to use, if matters: No matter.
Non-default settings, if any: Not any.
CREATE TABLE
statements for all tables involvedNo data is needed to reproduce the error.
Expected behavior
A clear and concise description of what you expected to happen.
The query is expected to be successful.
Error message and/or stacktrace
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
These queries are successful:
However, this won't work either:
The text was updated successfully, but these errors were encountered: