Skip to content

Revert "Move conditions from JOIN ON to WHERE"#22753

Merged
vdimir merged 2 commits intomasterfrom
revert-19685-dev_joinon
Apr 15, 2021
Merged

Revert "Move conditions from JOIN ON to WHERE"#22753
vdimir merged 2 commits intomasterfrom
revert-19685-dev_joinon

Conversation

@vdimir
Copy link
Copy Markdown
Member

@vdimir vdimir commented Apr 7, 2021

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):

Moving conditions from JOIN ON into outer WHERE works in restricted number of cases (ALL INNER). We need mo sophisticated solution to handle different types of expressions in ON section like #21868

Alternative to this PR fix is #22745

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Apr 7, 2021
@vdimir vdimir marked this pull request as ready for review April 7, 2021 13:10
@vdimir vdimir merged commit 8c7ffda into master Apr 15, 2021
@vdimir vdimir deleted the revert-19685-dev_joinon branch April 15, 2021 09:42
@Flamefork
Copy link
Copy Markdown

Flamefork commented Jul 2, 2021

Could it be backported to at least an LTS version (21.3.x)?

vdimir added a commit to vdimir/ClickHouse that referenced this pull request Jul 2, 2021
@vdimir
Copy link
Copy Markdown
Member Author

vdimir commented Jul 9, 2021

@Flamefork sorry, we decided not to backport it, because it will break queries that use this feature and changing in with minor version doesn't look good.

@Flamefork
Copy link
Copy Markdown

I see, that's totally reasonable. Anyway, thanks for the effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default pr-no-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DB::Exception: Cannot get JOIN keys from JOIN ON section Correct move conditions from JOIN ON to WHERE for ANY JOIN`

3 participants