mohit7705 opened a new pull request, #19668:
URL: https://github.com/apache/datafusion/pull/19668

   ### Which issue does this PR close?
   
   Closes #19664
   
   ---
   
   ### Rationale for this change
   
   After #18880, `BatchPartitioner::try_new` gained additional parameters that 
are
   only relevant for round-robin repartitioning. This made the constructor API
   confusing, as hash repartitioning received parameters it does not use.
   
   Splitting the constructor improves clarity and avoids passing
   round-robin–specific parameters to hash partitioning.
   
   ---
   
   ### What changes are included in this PR?
   
   - Introduce `BatchPartitioner::try_new_hash`
   - Introduce `BatchPartitioner::try_new_round_robin`
   - Refactor callers to use the specialized constructors
   - Retain `BatchPartitioner::try_new` as a delegator for backward 
compatibility
   
   This is a pure refactor; behavior is unchanged.
   
   ---
   
   ### Are these changes tested?
   
   Yes. Existing tests cover this code path.
   All builds pass locally.
   
   ---
   
   ### Are there any user-facing changes?
   
   No. This change is internal only and does not affect user-facing behavior or 
APIs.
   


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