Skip to content

Better ambiguous column detection#7358

Merged
4ertus2 merged 12 commits intoClickHouse:masterfrom
4ertus2:ast
Oct 24, 2019
Merged

Better ambiguous column detection#7358
4ertus2 merged 12 commits intoClickHouse:masterfrom
4ertus2:ast

Conversation

@4ertus2
Copy link
Copy Markdown
Contributor

@4ertus2 4ertus2 commented Oct 16, 2019

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

For changelog. Remove if this is non-significant change.

Category (leave one):

  • Improvement

Short description (up to few sentences):
Detect and throw if we cannot detect table for column name in query.

@4ertus2 4ertus2 changed the title [wip] Ambiguous column detection Ambiguous column detection Oct 18, 2019
@4ertus2 4ertus2 changed the title Ambiguous column detection Better ambiguous column detection Oct 18, 2019
if (!join || !join->table_expression)
return;

/// TODO: Push down for CROSS JOIN is not OK [disabled]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've also disabled table to subquery rewrite logic for CROSS JOINs here cause it doesn't work properly.

@akuzm
Copy link
Copy Markdown
Contributor

akuzm commented Oct 24, 2019

00094_union_race_conditions_5 fails, is this relevant?

@akuzm akuzm self-requested a review October 24, 2019 10:39
@4ertus2 4ertus2 merged commit df32d92 into ClickHouse:master Oct 24, 2019
@akuzm akuzm added the pr-improvement Pull request with some product improvements label Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants