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

Take triggers unneeded shuffle.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1, 1.1.0
    • SQL
    • None

    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

            sameerag Sameer Agarwal
            marmbrus Michael Armbrust
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: