Skip to content

Rewrite multiple JOINs v2#9739

Merged
alexey-milovidov merged 11 commits intoClickHouse:masterfrom
4ertus2:ast
Mar 22, 2020
Merged

Rewrite multiple JOINs v2#9739
alexey-milovidov merged 11 commits intoClickHouse:masterfrom
4ertus2:ast

Conversation

@4ertus2
Copy link
Copy Markdown
Contributor

@4ertus2 4ertus2 commented Mar 18, 2020

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

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
If set multiple_joins_rewriter_version = 2 enables second version of multiple JOIN rewrites that keeps not clashed column names as is. It supports multiple JOINs with USING and allow select * for JOINs with subqueries.

Detailed description / Documentation draft:

@4ertus2
Copy link
Copy Markdown
Contributor Author

4ertus2 commented Mar 20, 2020

For now V2 works but leads to regression in #6767
OK without predicate pushdown and not OK if pushdown enabled.

I think it would be OK to merge with disabled setting after tests pass.

@4ertus2 4ertus2 changed the title [wip] Rewrite multiple JOINs v2 Rewrite multiple JOINs v2 Mar 20, 2020
@alexey-milovidov alexey-milovidov merged commit 06a8a42 into ClickHouse:master Mar 22, 2020
@alexey-milovidov
Copy link
Copy Markdown
Member

@zhang2014 We are struggle to find why we have a regression in #6767

@zhang2014
Copy link
Copy Markdown
Contributor

I'll try to fix it, but may take one or two weeks(after done ClickHouse WebTerminal :) ).

It seems that the 'JOIN Key ' is not handled correctly

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

Labels

no-docs-needed pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants