feiniaofeiafei opened a new pull request, #64518:
URL: https://github.com/apache/doris/pull/64518

   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   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.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test: Manual test
   - Behavior changed: Yes. The optimizer no longer applies automatic salt join 
rewrite to ASOF joins or SaltJoin-generated helper joins.
   - Does this need documentation: No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to