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

Support shared CTE execution on MPP #43333

Closed
winoros opened this issue Apr 23, 2023 · 0 comments · Fixed by #42296
Closed

Support shared CTE execution on MPP #43333

winoros opened this issue Apr 23, 2023 · 0 comments · Fixed by #42296
Labels
type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@winoros
Copy link
Member

winoros commented Apr 23, 2023

Feature Request

Is your feature request related to a problem? Please describe:

Currently, if we want to execute CTE with MPP enabled, we can only get the plan that the CTE producer is run on TiDB. And thus, the consumer is also run on TiDB. So the performance loss.
We've created a variable that inlining all the CTEs to make the query fully run on MPP.

But it might also cause performance loss since the CTE producer might be very complex. If we inline them all, the complex producer segment will be executed multiple times.

Describe the feature you'd like:

So we need to support the shared CTE execution on MPP side.
Empower TiDB to execute fully on MPP with the producer only running once.

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

@winoros winoros added the type/feature-request Categorizes issue or PR as related to a new feature. label Apr 23, 2023
ti-chi-bot bot pushed a commit that referenced this issue May 24, 2023
ti-chi-bot bot pushed a commit that referenced this issue Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant