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

Apache Spark commented on SPARK-25947:
--------------------------------------

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

> Reduce memory usage in ShuffleExchangeExec by selecting only the sort columns
> -----------------------------------------------------------------------------
>
>                 Key: SPARK-25947
>                 URL: https://issues.apache.org/jira/browse/SPARK-25947
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.2
>            Reporter: Shuheng Dai
>            Priority: Major
>
> When sorting rows, ShuffleExchangeExec uses the entire row instead of just 
> the columns references in SortOrder to create the RangePartitioner. This 
> causes the RangePartitioner to sample entire rows to create rangeBounds and 
> can cause OOM issues on the driver when rows contain large fields.
> Create a projection and only use columns involved in the SortOrder for the 
> RangePartitioner



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to