Github user scwf commented on the issue:

    https://github.com/apache/spark/pull/16633
  
    refer to the maillist
    >One issue left is how to decide shuffle partition number. 
    We can have a config of the maximum number of elements for each GlobalLimit 
task to process, 
    then do a factorization to get a number most close to that config. 
    E.g. the config is 2000: 
    if limit=10000,  10000 = 2000 * 5, we shuffle to 5 partitions 
    if limit=9999, 9999 = 1111 * 9, we shuffle to 9 partitions 
    if limit is a prime number, we just fall back to single partition 
    
    You mean for the prime number case?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to