[ 
https://issues.apache.org/jira/browse/SPARK-44999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17759798#comment-17759798
 ] 

Snoot.io commented on SPARK-44999:
----------------------------------

User 'LuciferYang' has created a pull request for this issue:
https://github.com/apache/spark/pull/42713

> Refactor `ExternalSorter#getPartition` to reduce the number of i`f else` 
> judgments
> ----------------------------------------------------------------------------------
>
>                 Key: SPARK-44999
>                 URL: https://issues.apache.org/jira/browse/SPARK-44999
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 4.0.0
>            Reporter: Yang Jie
>            Priority: Minor
>
> {code:java}
>   private def getPartition(key: K): Int = {
>     if (shouldPartition) partitioner.get.getPartition(key) else 0
>   } {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to