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 planning of recursive queries with duplicate outputs of partial plan #9153

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

kasiafi
Copy link
Member

@kasiafi kasiafi commented Sep 8, 2021

If the recursion base relation or the recursion step relation
is planned so that it has duplicate output symbols, they need to
be re-mapped to distinct symbols. This is necessary to successfully
replace this part of the plan with another plan in the next recursion
step.

This is achieved by adding a disambiguating projection.

@cla-bot cla-bot bot added the cla-signed label Sep 8, 2021
@kasiafi kasiafi requested a review from martint September 8, 2021 12:16
If the recursion base relation or the recursion step relation
is planned so that it has duplicate output symbols, they need to
be re-mapped to distinct symbols. This is necessary to successfully
replace this part of the plan with another plan in the next recursion
step.

This is achieved by adding a disambiguating projection.
@kasiafi kasiafi merged commit 10a85b1 into trinodb:master Sep 10, 2021
@kasiafi kasiafi mentioned this pull request Sep 10, 2021
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants