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

   …gregation
   
   Problem: non-final streaming aggregation can consume rows directly from its 
upstream pipeline, even when separating the pipelines with a local passthrough 
exchange is required to match the intended Repeat-to-streaming-aggregation 
execution shape. opt_perf_4.1 already carries the thrift field but does not 
expose or consume it end to end.
   
   Solution: expose enable_local_exchange_before_agg as a default-enabled 
session variable and propagate it to TQueryOptions. StreamingAggOperatorX 
requests PASSTHROUGH only for non-final streaming aggregation. The existing 
hash-join passthrough priority and explicit shuffled_agg_ids HASH_SHUFFLE 
override remain intact; disabling the variable, or receiving an unset field 
from an older FE, retains the original distribution behavior.
   
   Validation: ./build.sh --fe; ./build.sh --be -j 48; ./run-fe-ut.sh --run 
org.apache.doris.qe.VariableMgrTest; ./run-be-ut.sh --run 
--filter=StreamingAggOperatorTest.require_passthrough_local_exchange_before_non_finalize_agg
 -j 90. On an isolated FE/BE, an uncached GROUPING SETS query with agg_phase=2 
produced REPEAT -> LOCAL_EXCHANGE(PASSTHROUGH) -> STREAMING_AGGREGATION by 
default; setting the variable false removed that local exchange while retaining 
the streaming aggregation and result rows.
   
   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   Related PR: #xxx
   
   Problem Summary:
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [ ] No.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [ ] No.
       - [ ] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->
   
   


-- 
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