Rich-T-kid opened a new pull request, #27890:
URL: https://github.com/apache/datafusion/pull/27890

   ## Which issue does this PR close?
   
   - Part of #7001.
   
   ## Rationale for this change
   
   Bounded unordered hash and range repartition inputs visit non-empty output 
coalescers in the same order. Concurrent producers can therefore queue behind 
the same output mutex before moving to the next one.
   
   Local balanced runs at 256 and 512 partitions were within 2%, so this is a 
draft while the upstream benchmark bot checks the standard suites on its ARM 
runner.
   
   ## What changes are included in this PR?
   
   Start each bounded input task at a different point in its list of non-empty 
output batches. This staggers mutex acquisition without changing partition 
assignment or the public `BatchPartitioner` output order.
   
   Round-robin, preserve-order, unbounded, and single-input repartitioning are 
unchanged.
   
   ## What is the testing strategy for this PR?
   
   - `cargo test -p datafusion-physical-plan repartition --lib`
   - repository pre-push checks
   - upstream TPCH, TPC-DS, and partitioned ClickBench runs pending
   
   ## Are there any user-facing changes?
   
   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