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

Aggregates return incorrect results on first execution

Rank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1, 1.1.0
    • SQL
    • None

    Description

      Aaron Davidson has a full reproduction but he has found a case where the first run returns corrupted results, but the second case does not. The same does not occur when reading from HDFS a second time...

      sql("SELECT lang, COUNT(*) AS cnt FROM tweetTable GROUP BY lang ORDER BY cnt DESC").collect.foreach(println)
      [bg,16636]
      [16266,16266]
      [16223,16223]
      [16161,16161]
      [16047,16047]
      [lt,11405]
      [hu,11380]
      [el,10845]
      [da,10289]
      [fi,10261]
      [9897,9897]
      [9765,9765]
      [9751,9751]
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            marmbrus Michael Armbrust
            marmbrus Michael Armbrust
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment