spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-24193) Sort by disk when number of limit is big in TakeOrderedAndProjectExec
Date Sun, 06 May 2018 15:08:00 GMT

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

Apache Spark commented on SPARK-24193:
--------------------------------------

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

> Sort by disk when number of limit is big in TakeOrderedAndProjectExec
> ---------------------------------------------------------------------
>
>                 Key: SPARK-24193
>                 URL: https://issues.apache.org/jira/browse/SPARK-24193
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: jin xing
>            Priority: Major
>
> Physical plan of  "_select colA from t order by colB limit M_" is _TakeOrderedAndProject_;
> Currently _TakeOrderedAndProject_ sorts data in memory, see https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/limit.scala#L158

> Shall we add a config -- if the number of limit (M) is too big, we can sort by disk ?
Thus memory issue can be resolved.



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


Mime
View raw message