Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-2042

Take triggers unneeded shuffle.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: SQL
    • Labels:
      None
    • Target Version/s:

      Description

      This query really shouldn't trigger a shuffle:

      sql("SELECT * FROM src LIMIT 10").take(5)
      

      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

        Attachments

          Activity

            People

            • Assignee:
              sameerag Sameer Agarwal
              Reporter:
              marmbrus Michael Armbrust

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment