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

ISSUES-3105 fix some bugs in the predicate optimizer #3107

Merged
merged 2 commits into from
Sep 13, 2018

Conversation

zhang2014
Copy link
Contributor

@zhang2014 zhang2014 commented Sep 12, 2018

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

{
ASTPtr & ast = projection.first;
if (ast->tryGetAlias().empty())
ast->setAlias(ast->getAliasOrColumnName());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

#3105 (comment)
I tried to solve this problem by set alias.

Copy link
Member

Choose a reason for hiding this comment

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

Ok.

@zhang2014 zhang2014 changed the title ISSUES-3105 fix failure predicate optimize when arrayJoin & without alias [WIP] ISSUES-3105 fix failure predicate optimize when arrayJoin & without alias Sep 12, 2018
@zhang2014 zhang2014 changed the title [WIP] ISSUES-3105 fix failure predicate optimize when arrayJoin & without alias ISSUES-3105 fix some bugs in the predicate optimizer Sep 13, 2018
@zhang2014
Copy link
Contributor Author

zhang2014 commented Sep 13, 2018

@alexey-milovidov Done.
BTW, sorry for my negligence.

@alexey-milovidov alexey-milovidov merged commit 92b2cc6 into ClickHouse:master Sep 13, 2018
@alexey-milovidov
Copy link
Member

👍

@zhang2014
Copy link
Contributor Author

zhang2014 commented Sep 14, 2018

Can we push down predicate to WITH ... SELECT ? Because subqueries is normalized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants