Skip to content

branch-4.1:[fix](join) Restrict auto salt join rewrite #64518#65059

Merged
yiguolei merged 1 commit into
apache:branch-4.1from
feiniaofeiafei:pick-salt-join-restrict-4.1
Jul 1, 2026
Merged

branch-4.1:[fix](join) Restrict auto salt join rewrite #64518#65059
yiguolei merged 1 commit into
apache:branch-4.1from
feiniaofeiafei:pick-salt-join-restrict-4.1

Conversation

@feiniaofeiafei

Copy link
Copy Markdown
Contributor

picked from #64518

Related PR: apache#59591 apache#54207

Problem Summary:

This PR restricts the auto salt join rewrite in two cases.

First, ASOF joins are excluded from automatic salt join optimization
because the current rewrite may introduce large build-side expansion and
is not cost guarded for ASOF semantics.

Second, SaltJoin now marks internally generated helper joins with
`isSaltJoinGenerated` in `JoinReorderContext`. `SkewJoin` skips these
generated joins to avoid applying salt rewrite recursively on SaltJoin's
own expansion plan.
@feiniaofeiafei feiniaofeiafei requested a review from yiguolei as a code owner July 1, 2026 02:46
@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?

@feiniaofeiafei

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 40.91% (9/22) 🎉
Increment coverage report
Complete coverage report

@yiguolei

yiguolei commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

skip buildall

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

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@yiguolei yiguolei merged commit a4490bb into apache:branch-4.1 Jul 1, 2026
32 of 34 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