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

Fix simpliest case of cyclic aliases #9603

Merged
merged 2 commits into from
Mar 12, 2020
Merged

Conversation

alesapin
Copy link
Member

@alesapin alesapin commented Mar 11, 2020

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

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Now it's not possible to create or add columns with simple cyclic aliases like a DEFAULT b, b DEFAULT a.

Relates to #9489

@alesapin alesapin added the pr-bugfix Pull request with bugfix, not backported by default label Mar 11, 2020
@alesapin alesapin requested a review from 4ertus2 March 11, 2020 13:40
@alesapin alesapin changed the title Fix cyclic aliases Fix simpliest case of cyclic aliases Mar 11, 2020
@@ -91,14 +91,21 @@ void QueryNormalizer::visit(ASTIdentifier & node, ASTPtr & ast, Data & data)
return;
}

/// We are alias for other column (node.name), but we are alias by
Copy link
Contributor

@4ertus2 4ertus2 Mar 11, 2020

Choose a reason for hiding this comment

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

Cannot parse the comment. Are we an alias? Yes, we are. %)

Copy link
Member

Choose a reason for hiding this comment

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

I also found this comment not clear enough... but still understandable.

@alexey-milovidov
Copy link
Member

Functional stateless tests (debug) — fail: 20, passed: 2, skipped: 2

Fixed in master.

@alexey-milovidov
Copy link
Member

Performance test — 1608/1625 queries are OK

Outdated baseline. Actually now it's better.

@alexey-milovidov alexey-milovidov merged commit 0d7336c into master Mar 12, 2020
@alexey-milovidov alexey-milovidov deleted the fix_cyclic_aliases branch March 12, 2020 00:03
@alesapin alesapin added the v20.3 label Mar 16, 2020
KochetovNicolai pushed a commit that referenced this pull request Mar 16, 2020
Fix simpliest case of cyclic aliases

(cherry picked from commit 0d7336c)
vitlibar pushed a commit that referenced this pull request Mar 26, 2020
Fix simpliest case of cyclic aliases

(cherry picked from commit 0d7336c)
vitlibar pushed a commit that referenced this pull request Mar 26, 2020
Fix simpliest case of cyclic aliases

(cherry picked from commit 0d7336c)
vitlibar pushed a commit that referenced this pull request Mar 27, 2020
Fix simpliest case of cyclic aliases

(cherry picked from commit 0d7336c)
vitlibar pushed a commit that referenced this pull request Mar 27, 2020
Fix simpliest case of cyclic aliases

(cherry picked from commit 0d7336c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-docs-needed pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants