Skip to content

branch-4.0: [fix](rewrite rule) Reject mismatched compare plan in PullUpJoinFromUnionAll #65472 - #65999

Merged
morningman merged 1 commit into
apache:branch-4.0from
yujun777:cherry-pick-pr-65472-4.0
Jul 28, 2026
Merged

branch-4.0: [fix](rewrite rule) Reject mismatched compare plan in PullUpJoinFromUnionAll #65472#65999
morningman merged 1 commit into
apache:branch-4.0from
yujun777:cherry-pick-pr-65472-4.0

Conversation

@yujun777

Copy link
Copy Markdown
Contributor

cherry-pick: #65472

…nionAll (apache#65472)

Avoid comparing and remapping join inputs as equivalent when the
common-side projects expose different output arity. This keeps the union
pull-up rewrite aligned with the actual plan shape and adds focused
coverage for the comparator and rewrite guard.

Key changes:
- Add an output-size guard before comparing plan nodes in
PullUpJoinFromUnionAll.
- Add a FE unit test that covers both the comparator and the rewrite
path.

Unit Test:
- PullUpJoinFromUnionAllTest

relate PR:  apache#28682
@yujun777
yujun777 requested a review from morningman as a code owner July 24, 2026 07:18
@yujun777

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 32.31% (21/65) 🎉
Increment coverage report
Complete coverage report

@yujun777

Copy link
Copy Markdown
Contributor Author

run feut

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Jul 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@morningman
morningman merged commit 5a6719a into apache:branch-4.0 Jul 28, 2026
27 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants