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

Non-existent columns are returned on joins #6836

Closed
ghost opened this issue Sep 5, 2019 · 1 comment
Closed

Non-existent columns are returned on joins #6836

ghost opened this issue Sep 5, 2019 · 1 comment
Assignees
Labels
bug Confirmed user-visible misbehaviour in official release

Comments

@ghost
Copy link

ghost commented Sep 5, 2019

I'm trying to run the following query on ClickHouse server version 19.13.3 revision 54425:

SELECT l.a, l.c FROM (
    SELECT 1 AS a, 2 AS b
) AS l join (
    SELECT 2 AS b, 3 AS c
) AS r
USING b

I expect to get an error Missing columns: 'c' while processing query. However, instead of this error the server returns

┌─a─┬─c─┐
│ 1 │ 3 │
└───┴───┘
@ghost ghost added the bug Confirmed user-visible misbehaviour in official release label Sep 5, 2019
@4ertus2 4ertus2 self-assigned this Sep 5, 2019
@4ertus2
Copy link
Contributor

4ertus2 commented Oct 24, 2019

Need to ckeck columns in subselect results. Related #4567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed user-visible misbehaviour in official release
Projects
None yet
Development

No branches or pull requests

1 participant