Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-800

script1-hadoop.pig in pig tutorial hangs when run in local mode

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.3.0
    • None
    • None

    Description

      Any script of the form

      B = foreach A generate flatten(X); -- X is a bag
      C = distinct B;
      

      where X is sometimes an empty bag will hang in local mode. If distinct is replaced by order by it will also hang.

      The issue is that the flatten in foreach returns STATUS_NULL whenever the bag X is empty. PODistinct and POSort handle this incorrectly and go into an infinite loop.

      Attachments

        1. PIG-800.patch
          5 kB
          Alan Gates

        Activity

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

          People

            gates Alan Gates
            gates Alan Gates
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment