You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2014/06/06 04:19:01 UTC

[jira] [Updated] (SPARK-2042) Take triggers unneeded shuffle.

     [ https://issues.apache.org/jira/browse/SPARK-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Armbrust updated SPARK-2042:
------------------------------------

    Assignee: Sameer Agarwal

> Take triggers unneeded shuffle.
> -------------------------------
>
>                 Key: SPARK-2042
>                 URL: https://issues.apache.org/jira/browse/SPARK-2042
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.0.0
>            Reporter: Michael Armbrust
>            Assignee: Sameer Agarwal
>
> This query really shouldn't trigger a shuffle:
> {code}
> sql("SELECT * FROM src LIMIT 10").take(5)
> {code}
> One fix would be to make the following changes:
>  * Fix take to insert a logical limit and then collect()
>  * Add a rule for collapsing adjacent limits



--
This message was sent by Atlassian JIRA
(v6.2#6252)