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

Allow left side as update target in join pushdown #24447

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

chenjian2664
Copy link
Contributor

@chenjian2664 chenjian2664 commented Dec 11, 2024

Allow left side as update target when try to pushdown join into table scan. This can happen because the
DELETE or UPDATE is planned as the MERGE, it's implemented contains the logic of target right join on source part.

Description

Close #17003

Additional context and related issues

Release notes

() This is not user-visible or is docs only, and no release notes are required.
(x) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Geneal
* Refrain from join pushdown for modified tables ({issue}`24447`)

@cla-bot cla-bot bot added the cla-signed label Dec 11, 2024
@chenjian2664 chenjian2664 force-pushed the fix_merge_join_pd branch 6 times, most recently from 0c6314c to 402e91e Compare December 12, 2024 17:21
@chenjian2664 chenjian2664 force-pushed the fix_merge_join_pd branch 2 times, most recently from 89373c4 to b18857c Compare December 16, 2024 14:17
Allow left side as update target when try to pushdown join
into table scan. The change prevent the pushdown join into the
table scan instead of throwing exception

Co-Authored-By: Łukasz Osipiuk <[email protected]>
Copy link
Member

@kokosing kokosing left a comment

Choose a reason for hiding this comment

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

@losipiuk Do you have more comments?

@losipiuk
Copy link
Member

@losipiuk Do you have more comments?

No - this is fine - approved - thanks.

@losipiuk losipiuk merged commit 8205581 into trinodb:master Dec 18, 2024
94 checks passed
@github-actions github-actions bot added this to the 469 milestone Dec 18, 2024
@losipiuk
Copy link
Member

@losipiuk Do you have more comments?

No - this is fine - approved - thanks.

Actually - commit message could be changed - but too late - merged already

@chenjian2664 chenjian2664 deleted the fix_merge_join_pd branch December 18, 2024 18:34
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.

Planning error when apply the rule 'PushJoinIntoTableScan'
3 participants