wankunde commented on PR #40339:
URL: https://github.com/apache/spark/pull/40339#issuecomment-1599100107

   We can reduce the network IO with local shuffle. Could we use parameter for 
different kind of PartitionSpec ?
   Like 
   ```java
         case PartialReducerPartitionSpec(_, startMapIndex, endMapIndex, _) =>
           if (!shuffleLocalityEnabled) return Nil
           tracker.getMapLocation(dependency, startMapIndex, endMapIndex)
   
         case PartialMapperPartitionSpec(mapIndex, _, _) =>
           if (!localShuffleLocalityEnabled) return Nil
           tracker.getMapLocation(dependency, mapIndex, mapIndex + 1)
   
         case CoalescedMapperPartitionSpec(startMapIndex, endMapIndex, 
numReducers) =>
           if (!localShuffleLocalityEnabled) return Nil
           tracker.getMapLocation(dependency, startMapIndex, endMapIndex)
   ```


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