You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Shuheng Dai (JIRA)" <ji...@apache.org> on 2018/11/06 04:20:00 UTC

[jira] [Created] (SPARK-25947) Reduce memory usage in ShuffleExchangeExec by selecting only the sort columns

Shuheng Dai created SPARK-25947:
-----------------------------------

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


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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org